Skip to content

Commit 48c5fd4

Browse files
[wasm] Guard RunLoop.subproj sources with __HAS_DISPATCH__
1 parent ff07568 commit 48c5fd4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
Responsibility: Michael LeHew
99
*/
1010

11+
#if __HAS_DISPATCH__
12+
1113
#include <CoreFoundation/CFRunLoop.h>
1214
#include <CoreFoundation/CFSet.h>
1315
#include <CoreFoundation/CFBag.h>
@@ -4756,3 +4758,4 @@ void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef rlt, CFTimeInterval tolerance)
47564758
#endif
47574759
}
47584760

4761+
#endif /* __HAS_DISPATCH__ */

CoreFoundation/RunLoop.subproj/CFSocket.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
Responsibility: Michael LeHew
99
*/
1010

11+
#if __HAS_DISPATCH__
12+
1113
#include <CoreFoundation/CFSocket.h>
1214
#include <sys/types.h>
1315
#include <math.h>
@@ -2639,3 +2641,4 @@ CF_EXPORT uint16_t CFSocketGetDefaultNameRegistryPortNumber(void) {
26392641
return __CFSocketDefaultNameRegistryPortNumber;
26402642
}
26412643

2644+
#endif /* __HAS_DISPATCH__ */

0 commit comments

Comments
 (0)