Skip to content

Commit 514e2bd

Browse files
Merge pull request #4911 from kateinoigakukun/pr-35d76bc0234067e20476f1b3341e8c8c599542e9
[wasm] Guard RunLoop.subproj sources with `__HAS_DISPATCH__`
2 parents 6869b4b + 48c5fd4 commit 514e2bd

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)