File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
15
+ #if canImport(Darwin )
16
16
import Darwin
17
17
#elseif os(Windows)
18
18
import CRT
@@ -1242,7 +1242,7 @@ internal struct StdioOutputStream: TextOutputStream {
1242
1242
}
1243
1243
1244
1244
// Prevent name clashes
1245
- #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS )
1245
+ #if canImport(Darwin )
1246
1246
let systemStderr = Darwin . stderr
1247
1247
let systemStdout = Darwin . stdout
1248
1248
#elseif os(Windows)
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
15
+ #if canImport(Darwin )
16
16
import Darwin
17
17
#elseif os(Windows)
18
18
import CRT
Original file line number Diff line number Diff line change 14
14
@testable import Logging
15
15
import XCTest
16
16
17
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
17
+ #if canImport(Darwin )
18
18
import Darwin
19
19
#elseif os(Windows)
20
20
import WinSDK
Original file line number Diff line number Diff line change 14
14
@testable import Logging
15
15
import XCTest
16
16
17
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
17
+ #if canImport(Darwin )
18
18
import Darwin
19
19
#elseif os(Windows)
20
20
import WinSDK
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ public class MDC {
359
359
}
360
360
361
361
private var threadId : Int {
362
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
362
+ #if canImport(Darwin )
363
363
return Int ( pthread_mach_thread_np ( pthread_self ( ) ) )
364
364
#elseif os(Windows)
365
365
return Int ( GetCurrentThreadId ( ) )
You can’t perform that action at this time.
0 commit comments