Skip to content

Commit 164af81

Browse files
[wasm] Include CFPreferences.h, CFRunLoop.h, and CFStream.h in WASI builds
Those headers has been imported by Swift side through `CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h` since 44031b5 but we switched to use CoreFoundation.h directly after the recore, and the header was not updated in 44031b5
1 parent 27310f4 commit 164af81

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/CoreFoundation/include/CoreFoundation.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@
5858
#include "CFLocale.h"
5959
#include "CFNumber.h"
6060
#include "CFNumberFormatter.h"
61-
#if !TARGET_OS_WASI
6261
#include "CFPreferences.h"
63-
#endif
6462
#include "CFPropertyList.h"
6563
#include "CFSet.h"
6664
#include "CFString.h"
@@ -76,13 +74,17 @@
7674

7775
#include "ForSwiftFoundationOnly.h"
7876

79-
#if TARGET_OS_OSX || TARGET_OS_IPHONE || TARGET_OS_WIN32 || TARGET_OS_LINUX
77+
#if TARGET_OS_OSX || TARGET_OS_IPHONE || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
78+
# if !TARGET_OS_WASI
8079
#include "CFMessagePort.h"
8180
#include "CFPlugIn.h"
81+
# endif
8282
#include "CFRunLoop.h"
8383
#include "CFStream.h"
84+
# if !TARGET_OS_WASI
8485
#include "CFSocket.h"
8586
#include "CFMachPort.h"
87+
# endif
8688

8789
#include "CFAttributedString.h"
8890
#include "CFNotificationCenter.h"

0 commit comments

Comments
 (0)