Skip to content

Commit

Permalink
Merge pull request #1058 from AnneBlair/support_Musl
Browse files Browse the repository at this point in the history
Support for Static Linux SDK Based on Musl Instead of Glibc
  • Loading branch information
krzyzanowskim authored Dec 6, 2024
2 parents db558ee + 7c68455 commit d4db480
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/BlockMode/CCM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#elseif canImport(WASILibc)
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/Cryptors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#endif
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/HKDF.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#elseif canImport(WASILibc)
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/Int+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#endif
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/PKCS/PBKDF2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#elseif canImport(WASILibc)
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/SHA3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#endif
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/SecureBytes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(WinSDK)
import WinSDK
#endif
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/UInt32+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#endif
Expand Down
2 changes: 2 additions & 0 deletions Sources/CryptoSwift/UInt8+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(ucrt)
import ucrt
#endif
Expand Down

0 comments on commit d4db480

Please sign in to comment.