Do not import CSystem on Darwin

This commit is contained in:
Michael Ilseman committed 2021-02-27 10:59:54 -07:00
1 parent b28263a910
commit 8b989f724f
4 files changed
+6 -4

No files matched your search

@@ -14,12 +14,13 @@
@available(*, deprecated, renamed: "CInterop.Mode")
public typealias CModeT = CInterop.Mode
import CSystem
#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
import ucrt
#else
#error("Unsupported Platform")
+2 -1
View File
@@ -11,12 +11,13 @@
// they can be used anywhere without imports and without confusion to
// unavailable local decls.
import CSystem
#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
import ucrt
#else
#error("Unsupported Platform")
+2 -2
View File
@@ -7,8 +7,6 @@
See https://swift.org/LICENSE.txt for license information
*/
import CSystem
// Internal wrappers and typedefs which help reduce #if littering in System's
// code base.
@@ -17,8 +15,10 @@ import CSystem
#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
import ucrt
#else
#error("Unsupported Platform")