Skip to content

Commit 836b940

Browse files
[wasm] Port CoreFoundation/Base.subproj/CFRuntime.c
1 parent c890a55 commit 836b940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/Base.subproj/CFRuntime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ __kCFRetainEvent = 28,
5252
__kCFReleaseEvent = 29
5353
};
5454

55-
#if TARGET_OS_WIN32 || TARGET_OS_LINUX
55+
#if TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
5656
#include <malloc.h>
5757
#elif TARGET_OS_BSD
5858
#include <stdlib.h> // malloc()
@@ -1162,7 +1162,7 @@ _CFThreadRef _CF_pthread_main_thread_np(void) {
11621162

11631163

11641164

1165-
#if TARGET_OS_LINUX || TARGET_OS_BSD
1165+
#if TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_WASI
11661166
static void __CFInitialize(void) __attribute__ ((constructor));
11671167
#endif
11681168
#if TARGET_OS_WIN32

0 commit comments

Comments
 (0)