Skip to content

Commit

Permalink
@_implementationOnly also for Swift 5.3 (#212)
Browse files Browse the repository at this point in the history
Motivation:

@_implementationOnly also works in Swift 5.3, let's use it.

Modification:

Use @_implementationOnly for Swift 5.1 ... 5.3

Result:

Proper 5.3 support.

Co-authored-by: Cory Benfield <[email protected]>
  • Loading branch information
weissi and Lukasa authored May 1, 2020
1 parent f02ae1b commit e0049a1
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Sources/NIOSSL/ByteBufferBIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import NIO
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/NIOSSLHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import NIO
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLCallbacks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLCertificate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
@_implementationOnly import CNIOBoringSSLShims
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import NIO
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import NIO
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
@_implementationOnly import CNIOBoringSSLShims
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLErrors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLInit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLPKCS12Bundle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLPrivateKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/SSLPublicKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
import NIO

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/TLSConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOSSLTests/ByteBufferBIOTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import XCTest
import NIO
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOSSLTests/NIOSSLALPNTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import XCTest
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOSSLTests/NIOSSLIntegrationTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import XCTest
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOSSLTests/NIOSSLTestHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import Foundation
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOSSLTests/TLSConfigurationTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

import XCTest
#if compiler(>=5.1) && compiler(<5.3)
#if compiler(>=5.1) && compiler(<5.4)
@_implementationOnly import CNIOBoringSSL
#else
import CNIOBoringSSL
Expand Down

0 comments on commit e0049a1

Please sign in to comment.