File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ void _dispatch_log(const char *msg, ...);
454
454
* For reporting bugs within libdispatch when using the "_debug" version of the
455
455
* library.
456
456
*/
457
- #if __GNUC__
457
+ #if __APPLE__
458
458
#define dispatch_assert (e ) do { \
459
459
if (__builtin_constant_p(e)) { \
460
460
dispatch_static_assert(e); \
@@ -472,7 +472,7 @@ static inline void _dispatch_assert(long e, long line) {
472
472
#define dispatch_assert (e ) _dispatch_assert((long)(e), __LINE__)
473
473
#endif /* __GNUC__ */
474
474
475
- #if __GNUC__
475
+ #if __APPLE__
476
476
/*
477
477
* A lot of API return zero upon success and not-zero on fail. Let's capture
478
478
* and log the non-zero value
@@ -491,7 +491,7 @@ static inline void _dispatch_assert(long e, long line) {
491
491
static inline void _dispatch_assert_zero (long e , long line ) {
492
492
if (DISPATCH_DEBUG && e ) _dispatch_abort (line , e );
493
493
}
494
- #define dispatch_assert_zero (e ) _dispatch_assert ((long)(e), __LINE__)
494
+ #define dispatch_assert_zero (e ) _dispatch_assert_zero ((long)(e), __LINE__)
495
495
#endif /* __GNUC__ */
496
496
497
497
/*
Original file line number Diff line number Diff line change @@ -4523,10 +4523,12 @@ _dispatch_return_to_kernel(void)
4523
4523
void
4524
4524
_dispatch_poll_for_events_4launchd (void )
4525
4525
{
4526
+ #if DISPATCH_USE_KEVENT_WORKQUEUE
4526
4527
if (_dispatch_get_wlh ()) {
4527
4528
dispatch_assert (_dispatch_deferred_items_get ()-> ddi_wlh_servicing );
4528
4529
_dispatch_event_loop_drain (KEVENT_FLAG_IMMEDIATE );
4529
4530
}
4531
+ #endif
4530
4532
}
4531
4533
4532
4534
#if HAVE_PTHREAD_WORKQUEUE_NARROWING
You can’t perform that action at this time.
0 commit comments