Skip to content

Commit

Permalink
Replace @_implementationOnly with plain import in SystemExtras
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Oct 8, 2024
1 parent 68fe402 commit 6ebbfaa
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Sources/SystemExtras/Clock.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if SYSTEM_PACKAGE_DARWIN
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import CSystem
import CSystem
import Glibc
#elseif canImport(Musl)
@_implementationOnly import CSystem
import CSystem
import Musl
#elseif os(Windows)
import CSystem
Expand Down
4 changes: 2 additions & 2 deletions Sources/SystemExtras/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if SYSTEM_PACKAGE_DARWIN
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import CSystem
import CSystem
import Glibc
#elseif canImport(Musl)
@_implementationOnly import CSystem
import CSystem
import Musl
#elseif os(Windows)
import CSystem
Expand Down
4 changes: 2 additions & 2 deletions Sources/SystemExtras/FileAtOperations.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if SYSTEM_PACKAGE_DARWIN
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import CSystem
import CSystem
import Glibc
#elseif canImport(Musl)
@_implementationOnly import CSystem
import CSystem
import Musl
#elseif os(Windows)
import ucrt
Expand Down
4 changes: 2 additions & 2 deletions Sources/SystemExtras/FileOperations.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if SYSTEM_PACKAGE_DARWIN
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import CSystem
import CSystem
import Glibc
#elseif canImport(Musl)
@_implementationOnly import CSystem
import CSystem
import Musl
#elseif os(Windows)
import ucrt
Expand Down
4 changes: 2 additions & 2 deletions Sources/SystemExtras/Syscalls.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#if SYSTEM_PACKAGE_DARWIN
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import CSystem
import CSystem
import Glibc
#elseif canImport(Musl)
@_implementationOnly import CSystem
import CSystem
import Musl
#elseif os(Windows)
import ucrt
Expand Down
6 changes: 3 additions & 3 deletions Sources/SystemExtras/Vendor/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import Darwin
import CSystem
import ucrt
#elseif canImport(Glibc)
@_implementationOnly import CSystem
import CSystem
import Glibc
#elseif canImport(Musl)
@_implementationOnly import CSystem
import CSystem
import Musl
#elseif canImport(WASILibc)
import WASILibc
#elseif canImport(Android)
@_implementationOnly import CSystem
import CSystem
import Android
#else
#error("Unsupported Platform")
Expand Down

0 comments on commit 6ebbfaa

Please sign in to comment.