Skip to content

Commit 35912b3

Browse files
committed
Fix to remove access level modifier on imports for Swift 5
fix #870 refs #804 If you want without compiler conditional import, enable `InternalImportsByDefault` upcoming feature and remove `internal` from imports.
1 parent a1cea40 commit 35912b3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Sources/ArgumentParser/Utilities/Mutex.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@
1010
//===----------------------------------------------------------------------===//
1111

1212
#if canImport(os)
13+
#if compiler(>=6.0)
1314
internal import os
1415
#if canImport(C.os.lock)
1516
internal import C.os.lock
1617
#endif
18+
#else
19+
import os
20+
#if canImport(C.os.lock)
21+
import C.os.lock
22+
#endif
23+
#endif
1724
#elseif canImport(Bionic)
1825
@preconcurrency import Bionic
1926
#elseif canImport(Glibc)

0 commit comments

Comments
 (0)