Skip to content

Commit fe2ac23

Browse files
committed
CoreFoundation/RunLoop: conditionalize non-portable declaration
1 parent 938b988 commit fe2ac23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ CF_INLINE uint64_t check_uint64_add(uint64_t x, uint64_t y, int32_t* err) {
5050
#include <dispatch/private.h>
5151
#elif __HAS_DISPATCH__
5252
extern dispatch_queue_t _dispatch_runloop_root_queue_create_4CF(const char *_Nullable label, unsigned long flags);
53+
#if USE_DISPATCH_SOURCE_FOR_TIMERS
5354
extern mach_port_t _dispatch_runloop_root_queue_get_port_4CF(dispatch_queue_t queue);
55+
#endif
5456
extern void _dispatch_source_set_runloop_timer_4CF(dispatch_source_t source, dispatch_time_t start, uint64_t interval, uint64_t leeway);
5557
extern bool _dispatch_runloop_root_queue_perform_4CF(dispatch_queue_t queue);
5658
#endif

0 commit comments

Comments
 (0)