File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,17 @@ DISPATCH_EXPORT DISPATCH_NOTHROW
199
199
dispatch_runloop_handle_t
200
200
_dispatch_get_main_queue_handle_4CF (void );
201
201
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
202
208
__OSX_AVAILABLE_STARTING (__MAC_10_6 ,__IPHONE_4_0 )
203
209
DISPATCH_EXPORT DISPATCH_NOTHROW
204
210
void
205
211
_dispatch_main_queue_callback_4CF (void * _Null_unspecified msg );
212
+ #endif
206
213
207
214
__OSX_AVAILABLE_STARTING (__MAC_10_9 ,__IPHONE_7_0 )
208
215
DISPATCH_EXPORT DISPATCH_MALLOC DISPATCH_RETURNS_RETAINED DISPATCH_WARN_RESULT
Original file line number Diff line number Diff line change @@ -5707,7 +5707,7 @@ _dispatch_runloop_queue_handle_init(void *ctxt)
5707
5707
handle = fd ;
5708
5708
#else
5709
5709
#error "runloop support not implemented on this platform"
5710
- #endif
5710
+ #endif
5711
5711
_dispatch_runloop_queue_set_handle (dq , handle );
5712
5712
5713
5713
_dispatch_program_is_probably_callback_driven = true;
@@ -5769,7 +5769,13 @@ _dispatch_queue_set_mainq_drain_state(bool arg)
5769
5769
}
5770
5770
5771
5771
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 )
5773
5779
{
5774
5780
if (main_q_is_draining ) {
5775
5781
return ;
You can’t perform that action at this time.
0 commit comments