We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e9e20 commit b5b3614Copy full SHA for b5b3614
src/source.c
@@ -2034,8 +2034,10 @@ _dispatch_kevent_qos_s _dispatch_kevent_timeout[] = {
2034
};
2035
#define DISPATCH_KEVENT_TIMEOUT_COUNT \
2036
((sizeof(_dispatch_kevent_timeout) / sizeof(_dispatch_kevent_timeout[0])))
2037
-static_assert(DISPATCH_KEVENT_TIMEOUT_COUNT == DISPATCH_TIMER_INDEX_COUNT - 1,
+#if __has_feature(c_static_assert)
2038
+_Static_assert(DISPATCH_KEVENT_TIMEOUT_COUNT == DISPATCH_TIMER_INDEX_COUNT - 1,
2039
"should have a kevent for everything but disarm (ddt assumes this)");
2040
+#endif
2041
2042
#define DISPATCH_KEVENT_COALESCING_WINDOW_INIT(qos, ms) \
2043
[DISPATCH_TIMER_QOS_##qos] = 2ull * (ms) * NSEC_PER_MSEC
0 commit comments