mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-28 01:19:26 +08:00
Use #if canImport(Darwin) where possible (#201)
This commit is contained in:
parent
868a89ffdc
commit
fb70a0f5e9
Sources
NIOExtras
NIOSOCKS/Messages
@ -11,7 +11,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
|
||||
#if canImport(Darwin)
|
||||
import Darwin
|
||||
#else
|
||||
import Glibc
|
||||
|
@ -12,7 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
|
||||
#if canImport(Darwin)
|
||||
import Darwin
|
||||
#else
|
||||
import Glibc
|
||||
|
@ -12,7 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
|
||||
#if canImport(Darwin)
|
||||
import Darwin
|
||||
#else
|
||||
import Glibc
|
||||
|
@ -12,7 +12,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
|
||||
#if canImport(Darwin)
|
||||
import Darwin
|
||||
#else
|
||||
import Glibc
|
||||
|
Loading…
x
Reference in New Issue
Block a user