Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 708f37f

Browse files
FIX use canImport instead of swift(>=5.1) && os(Linux)
1 parent 559c0f3 commit 708f37f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Examples/HTTPSRequest/Sources/HTTPSRequest/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import AsyncHTTPClient
1616
import Foundation
17-
#if swift(>=5.1) && os(Linux)
17+
#if canImport(FoundationNetworking)
1818
import FoundationNetworking
1919
#endif
2020
import LambdaSwiftSprinter

Examples/HelloWorld/Sources/HelloWorld/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919
import LambdaSwiftSprinter

Examples/S3Test/Sources/S3Test/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919
import LambdaSwiftSprinter

0 commit comments

Comments
 (0)