Skip to content

Commit ef9d962

Browse files
kateinoigakukunAnka
authored and
Anka
committed
Revert "[wasm] Fix ambiguous errno error when importing WASILibc module"
This reverts commit 164ec0a.
1 parent 7977278 commit ef9d962

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

stdlib/public/Platform/Platform.swift

-6
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ func _convertDarwinBooleanToBool(_ x: DarwinBoolean) -> Bool {
8484

8585
#endif
8686

87-
// wasi-libc defines `errno` in a way ClangImporter can understand, so we don't
88-
// need to define shims for it. On the contrary, if we define the shim, we will
89-
// get an ambiguity error when importing WASILibc module and SwiftWASILibc Clang
90-
// module (or a Clang module that re-exports SwiftWASILibc).
91-
#if !os(WASI)
9287
//===----------------------------------------------------------------------===//
9388
// sys/errno.h
9489
//===----------------------------------------------------------------------===//
@@ -101,7 +96,6 @@ public var errno : Int32 {
10196
return _swift_stdlib_setErrno(val)
10297
}
10398
}
104-
#endif
10599

106100

107101
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)