From a552fda216c80c21d4ce6734158c490d8efb6aca Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Wed, 8 Jun 2022 18:54:55 -0700 Subject: [PATCH] Import C module as `@_implementationOnly` (#83) --- Sources/System/Internals/CInterop.swift | 2 +- Sources/System/Internals/Constants.swift | 1 - Sources/System/Internals/Exports.swift | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/System/Internals/CInterop.swift b/Sources/System/Internals/CInterop.swift index 2a9832e..cb84a59 100644 --- a/Sources/System/Internals/CInterop.swift +++ b/Sources/System/Internals/CInterop.swift @@ -17,7 +17,7 @@ public typealias CModeT = CInterop.Mode #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) import Darwin #elseif os(Linux) || os(FreeBSD) || os(Android) -import CSystem +@_implementationOnly import CSystem import Glibc #elseif os(Windows) import CSystem diff --git a/Sources/System/Internals/Constants.swift b/Sources/System/Internals/Constants.swift index a4dbb89..5489a55 100644 --- a/Sources/System/Internals/Constants.swift +++ b/Sources/System/Internals/Constants.swift @@ -14,7 +14,6 @@ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) import Darwin #elseif os(Linux) || os(FreeBSD) || os(Android) -import CSystem import Glibc #elseif os(Windows) import CSystem diff --git a/Sources/System/Internals/Exports.swift b/Sources/System/Internals/Exports.swift index 2b4ae3b..5c0a58a 100644 --- a/Sources/System/Internals/Exports.swift +++ b/Sources/System/Internals/Exports.swift @@ -15,7 +15,7 @@ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) import Darwin #elseif os(Linux) || os(FreeBSD) || os(Android) -import CSystem +@_implementationOnly import CSystem import Glibc #elseif os(Windows) import CSystem