File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1414
1515import Dispatch
1616
17- #if os(macOS) || os(iOS )
17+ #if canImport(Darwin )
1818 import Darwin
19- #elseif os(Linux )
19+ #elseif canImport(Glibc )
2020 import Glibc
2121#endif
2222
Original file line number Diff line number Diff line change 77// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88//
99
10+ #if os(Linux) || os(Android)
11+ import Foundation
12+ #else
13+ import SwiftFoundation
14+ #endif
15+
1016class XDGCheck {
1117
1218 static func run( ) -> Never {
Original file line number Diff line number Diff line change 99
1010// Most imports now centraized in TestImports.swift
1111
12- #if os(macOS) || os(iOS )
12+ #if canImport(Darwin )
1313 import Darwin
14- #elseif os(Linux) || os(Android )
14+ #elseif canImport(Glibc )
1515 import Glibc
1616#endif
1717
Original file line number Diff line number Diff line change 77// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88//
99
10+ #if os(Linux) || os(Android)
11+ import Foundation
12+ #else
13+ import SwiftFoundation
14+ #endif
15+
1016enum HelperCheckStatus : Int32 {
1117 case ok = 0
1218 case fail = 1
You can’t perform that action at this time.
0 commit comments