Skip to content

Commit

Permalink
Merge pull request #4911 from kateinoigakukun/pr-35d76bc0234067e20476…
Browse files Browse the repository at this point in the history
…f1b3341e8c8c599542e9

[wasm] Guard RunLoop.subproj sources with `__HAS_DISPATCH__`
  • Loading branch information
kateinoigakukun committed Mar 8, 2024
2 parents 6869b4b + 48c5fd4 commit 514e2bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CoreFoundation/RunLoop.subproj/CFRunLoop.c
Expand Up @@ -8,6 +8,8 @@
Responsibility: Michael LeHew
*/

#if __HAS_DISPATCH__

#include <CoreFoundation/CFRunLoop.h>
#include <CoreFoundation/CFSet.h>
#include <CoreFoundation/CFBag.h>
Expand Down Expand Up @@ -4756,3 +4758,4 @@ void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef rlt, CFTimeInterval tolerance)
#endif
}

#endif /* __HAS_DISPATCH__ */
3 changes: 3 additions & 0 deletions CoreFoundation/RunLoop.subproj/CFSocket.c
Expand Up @@ -8,6 +8,8 @@
Responsibility: Michael LeHew
*/

#if __HAS_DISPATCH__

#include <CoreFoundation/CFSocket.h>
#include <sys/types.h>
#include <math.h>
Expand Down Expand Up @@ -2639,3 +2641,4 @@ CF_EXPORT uint16_t CFSocketGetDefaultNameRegistryPortNumber(void) {
return __CFSocketDefaultNameRegistryPortNumber;
}

#endif /* __HAS_DISPATCH__ */

0 comments on commit 514e2bd

Please sign in to comment.