File tree 1 file changed +4
-4
lines changed
CoreFoundation/RunLoop.subproj
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ extern bool _dispatch_runloop_root_queue_perform_4CF(dispatch_queue_t queue);
74
74
typedef mach_port_t dispatch_runloop_handle_t ;
75
75
#elif defined(__linux__ ) || defined(__FreeBSD__ )
76
76
typedef int dispatch_runloop_handle_t ;
77
+ #elif TARGET_OS_WIN32
78
+ typedef HANDLE dispatch_runloop_handle_t ;
77
79
#endif
78
80
79
81
#endif
@@ -100,13 +102,12 @@ extern mach_port_t _dispatch_get_main_queue_port_4CF(void);
100
102
101
103
#elif TARGET_OS_WIN32 || TARGET_OS_CYGWIN
102
104
#include <process.h>
103
- DISPATCH_EXPORT HANDLE _dispatch_get_main_queue_handle_4CF (void );
105
+ DISPATCH_EXPORT dispatch_runloop_handle_t _dispatch_get_main_queue_port_4CF (void );
104
106
DISPATCH_EXPORT void _dispatch_main_queue_callback_4CF (void * _Null_unspecified );
105
107
106
108
#define MACH_PORT_NULL 0
107
109
#define mach_port_name_t HANDLE
108
110
#define mach_port_t HANDLE
109
- #define _dispatch_get_main_queue_port_4CF _dispatch_get_main_queue_handle_4CF
110
111
111
112
#elif DEPLOYMENT_TARGET_LINUX
112
113
@@ -116,10 +117,9 @@ DISPATCH_EXPORT void _dispatch_main_queue_callback_4CF(void * _Null_unspecified)
116
117
#include <sys/eventfd.h>
117
118
#include <sys/timerfd.h>
118
119
119
- dispatch_runloop_handle_t _dispatch_get_main_queue_handle_4CF (void );
120
+ dispatch_runloop_handle_t _dispatch_get_main_queue_port_4CF (void );
120
121
extern void _dispatch_main_queue_callback_4CF (void * _Null_unspecified msg );
121
122
122
- #define _dispatch_get_main_queue_port_4CF _dispatch_get_main_queue_handle_4CF
123
123
#endif
124
124
125
125
#if DEPLOYMENT_TARGET_WINDOWS || DEPLOYMENT_TARGET_LINUX
You can’t perform that action at this time.
0 commit comments