We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c890a55 commit 836b940Copy full SHA for 836b940
CoreFoundation/Base.subproj/CFRuntime.c
@@ -52,7 +52,7 @@ __kCFRetainEvent = 28,
52
__kCFReleaseEvent = 29
53
};
54
55
-#if TARGET_OS_WIN32 || TARGET_OS_LINUX
+#if TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
56
#include <malloc.h>
57
#elif TARGET_OS_BSD
58
#include <stdlib.h> // malloc()
@@ -1162,7 +1162,7 @@ _CFThreadRef _CF_pthread_main_thread_np(void) {
1162
1163
1164
1165
-#if TARGET_OS_LINUX || TARGET_OS_BSD
+#if TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_WASI
1166
static void __CFInitialize(void) __attribute__ ((constructor));
1167
#endif
1168
#if TARGET_OS_WIN32
0 commit comments