Skip to content

Commit a552fda

Browse files
authored
Import C module as @_implementationOnly (#83)
1 parent bdb13a5 commit a552fda

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Sources/System/Internals/CInterop.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public typealias CModeT = CInterop.Mode
1717
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1818
import Darwin
1919
#elseif os(Linux) || os(FreeBSD) || os(Android)
20-
import CSystem
20+
@_implementationOnly import CSystem
2121
import Glibc
2222
#elseif os(Windows)
2323
import CSystem

Sources/System/Internals/Constants.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1515
import Darwin
1616
#elseif os(Linux) || os(FreeBSD) || os(Android)
17-
import CSystem
1817
import Glibc
1918
#elseif os(Windows)
2019
import CSystem

Sources/System/Internals/Exports.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1616
import Darwin
1717
#elseif os(Linux) || os(FreeBSD) || os(Android)
18-
import CSystem
18+
@_implementationOnly import CSystem
1919
import Glibc
2020
#elseif os(Windows)
2121
import CSystem

0 commit comments

Comments
 (0)