We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb10ca8 commit 420eb07Copy full SHA for 420eb07
Sources/ArgumentParser/Utilities/Platform.swift
@@ -26,6 +26,8 @@ import Darwin
26
@preconcurrency import CRT
27
#elseif canImport(WASILibc)
28
@preconcurrency import WASILibc
29
+#elseif canImport(Android)
30
+@preconcurrency import Android
31
#endif
32
33
enum Platform {}
@@ -95,6 +97,8 @@ extension Platform {
95
97
ucrt._exit(code)
96
98
99
WASILibc.exit(code)
100
101
+ Android.exit(code)
102
103
}
104
@@ -117,7 +121,7 @@ extension Platform {
117
121
118
122
// MARK: Terminal size
119
123
120
-#if canImport(Glibc)
124
+#if canImport(Glibc) || canImport(Android)
125
func ioctl(_ a: Int32, _ b: Int32, _ p: UnsafeMutableRawPointer) -> Int32 {
126
ioctl(CInt(a), UInt(b), p)
127
0 commit comments