Skip to content

Commit

Permalink
Revert "[wasm] Fix ambiguous errno error when importing WASILibc mo…
Browse files Browse the repository at this point in the history
…dule"

This reverts commit 164ec0a.
  • Loading branch information
kateinoigakukun authored and Anka committed Oct 30, 2024
1 parent 9af0b15 commit 432b070
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stdlib/public/Platform/Platform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ func _convertDarwinBooleanToBool(_ x: DarwinBoolean) -> Bool {

#endif

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


//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit 432b070

Please sign in to comment.