mirror of
https://github.com/apple/swift-system
synced 2026-11-26 04:57:54 +00:00
Internals: adjust the definition of CInterop.Mode for Windows (#36)
Windows does not have a `mode_t` type, instead it uses `int` as a stand in. Adjust the type alias to reflect this.
This commit is contained in:
1 parent
83875613ec
commit
bdfeb29148
1 file changed
+4
@@ -29,7 +29,11 @@ import ucrt
|
||||
/// A namespace for C and platform types
|
||||
// @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
public enum CInterop {
|
||||
#if os(Windows)
|
||||
public typealias Mode = CInt
|
||||
#else
|
||||
public typealias Mode = mode_t
|
||||
#endif
|
||||
|
||||
/// The C `char` type
|
||||
public typealias Char = CChar
|
||||
|
||||
Reference in new issue
Block a user