Skip to content

Commit b5ecf30

Browse files
authored
Merge pull request #277 from ikesyo/use-canimport
[gardening] Use canImport
2 parents 62e5874 + 72da1b1 commit b5ecf30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/XCTest/Public/XCTestMain.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
@_exported import Foundation
2121
#endif
2222

23-
#if os(macOS)
23+
#if canImport(Darwin)
2424
import Darwin
25-
#elseif os(Linux) || os(FreeBSD)
25+
#elseif canImport(Glibc)
2626
import Glibc
2727
#endif
2828

0 commit comments

Comments
 (0)