Skip to content

Commit 2a27eca

Browse files
Merge pull request #5063 from kateinoigakukun/pr-e48524c7b6d29dd22e45275eb71ad417826c0260
Remove the workaround for WASI errno conflict
2 parents 3e725c4 + be0e853 commit 2a27eca

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/Foundation/NSPathUtilities.swift

-7
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)