Skip to content

Commit 79156fe

Browse files
committed
Add import CoreFoundation to NSPlatform.swift
1 parent 1feab84 commit 79156fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Foundation/NSPlatform.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ fileprivate var _NSPageSize: Int {
2121
#elseif os(WASI)
2222
// WebAssembly defines a fixed page size
2323
fileprivate let _NSPageSize: Int = 65_536
24+
25+
// Workaround for the lack of working Wasm autolinking in Swift 5.4
26+
import CoreFoundation
2427
#endif
2528

2629
public func NSPageSize() -> Int {

0 commit comments

Comments
 (0)