Skip to content

Commit 627df61

Browse files
committed
workaround CF build failure, add resolvers for new symbol, whitespace
Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent 56eb6b5 commit 627df61

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

private/private.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,17 @@ DISPATCH_EXPORT DISPATCH_NOTHROW
199199
dispatch_runloop_handle_t
200200
_dispatch_get_main_queue_handle_4CF(void);
201201

202+
#if TARGET_OS_MAC
203+
__OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
204+
DISPATCH_EXPORT DISPATCH_NOTHROW
205+
void
206+
_dispatch_main_queue_callback_4CF(mach_msg_header_t *_Null_unspecified msg);
207+
#else
202208
__OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
203209
DISPATCH_EXPORT DISPATCH_NOTHROW
204210
void
205211
_dispatch_main_queue_callback_4CF(void *_Null_unspecified msg);
212+
#endif
206213

207214
__OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_7_0)
208215
DISPATCH_EXPORT DISPATCH_MALLOC DISPATCH_RETURNS_RETAINED DISPATCH_WARN_RESULT

src/queue.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5707,7 +5707,7 @@ _dispatch_runloop_queue_handle_init(void *ctxt)
57075707
handle = fd;
57085708
#else
57095709
#error "runloop support not implemented on this platform"
5710-
#endif
5710+
#endif
57115711
_dispatch_runloop_queue_set_handle(dq, handle);
57125712

57135713
_dispatch_program_is_probably_callback_driven = true;
@@ -5769,7 +5769,13 @@ _dispatch_queue_set_mainq_drain_state(bool arg)
57695769
}
57705770

57715771
void
5772-
_dispatch_main_queue_callback_4CF(void *ignored DISPATCH_UNUSED)
5772+
_dispatch_main_queue_callback_4CF(
5773+
#if TARGET_OS_MAC
5774+
mach_msg_header_t *_Null_unspecified msg
5775+
#else
5776+
void *ignored
5777+
#endif
5778+
DISPATCH_UNUSED)
57735779
{
57745780
if (main_q_is_draining) {
57755781
return;

0 commit comments

Comments
 (0)