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:
Saleem Abdulrasool authored and GitHub committed 2021-03-16 19:24:59 -06:00
1 parent 83875613ec
commit bdfeb29148
1 file changed
+4
+4
View File
@@ -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