From 6f101593e54b8c373853f2f41194af2e1300a7b2 Mon Sep 17 00:00:00 2001 From: awxkee Date: Wed, 27 Apr 2022 12:48:02 +0200 Subject: [PATCH] trying to fix importing modules --- Package.swift | 6 ++++-- Sources/bzip2.swift/BZip+Data.swift | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 319917e..28cbb5c 100644 --- a/Package.swift +++ b/Package.swift @@ -9,7 +9,7 @@ let package = Package( // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "bzip2.swift", - targets: ["bzip2.swift"]), + targets: ["bzip2.swift", "bzip2.objc"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -39,5 +39,7 @@ let package = Package( dependencies: ["bzip2.swift"], path: "Tests", resources: [.process("bzip2.swiftTests/Test Files/XZ.txt")]), - ] + ], + swiftLanguageVersions: [.v5], + cLanguageStandard: .c11 ) diff --git a/Sources/bzip2.swift/BZip+Data.swift b/Sources/bzip2.swift/BZip+Data.swift index 595d87e..6a6537b 100644 --- a/Sources/bzip2.swift/BZip+Data.swift +++ b/Sources/bzip2.swift/BZip+Data.swift @@ -6,9 +6,6 @@ // import Foundation -#if SWIFT_PACKAGE -import bzip2objc -#endif public extension Data {