Skip to content

Commit be0e853

Browse files
Remove the workaround for WASI errno conflict
As we have fixed the conflict in the WASILibc overlay module while porting swift-foundation, we can remove the workaround from corelibs-foundation too.
1 parent 0d18916 commit be0e853

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/Foundation/NSPathUtilities.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
import WinSDK
1313
#elseif os(WASI)
1414
import WASILibc
15-
// CoreFoundation brings <errno.h> but it conflicts with WASILibc.errno
16-
// definition, so we need to explicitly select the one from WASILibc.
17-
// This is defined as "internal" since this workaround also used in other files.
18-
internal var errno: Int32 {
19-
get { WASILibc.errno }
20-
set { WASILibc.errno = newValue }
21-
}
2215
#endif
2316

2417
#if os(Windows)

0 commit comments

Comments
 (0)