Skip to content

Commit 664f332

Browse files
committed
Android: do not re-export macros from linux/stat.h from other modules
This lets us declare constants in the Android platform module using the expected mode_t type
1 parent 6077662 commit 664f332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Platform/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public var S_IFIFO: Int32 { return Int32(0x1000) }
241241
public var S_IREAD: Int32 { return Int32(0x0100) }
242242
public var S_IWRITE: Int32 { return Int32(0x0080) }
243243
public var S_IEXEC: Int32 { return Int32(0x0040) }
244-
#elseif !os(Android)
244+
#else
245245
public var S_IFMT: mode_t { return mode_t(0o170000) }
246246
public var S_IFIFO: mode_t { return mode_t(0o010000) }
247247
public var S_IFCHR: mode_t { return mode_t(0o020000) }

0 commit comments

Comments
 (0)