Selaa lähdekoodia

#if os(Linux) || os(Android) || os(FreeBSD)

Marcin Krzyżanowski 9 vuotta sitten
vanhempi
commit
a04f548a32

+ 1 - 1
Sources/CryptoSwift/Cryptors.swift

@@ -6,7 +6,7 @@
 //  Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved.
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin

+ 1 - 1
Sources/CryptoSwift/Int+Extension.swift

@@ -14,7 +14,7 @@
 //  - Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
 //  - This notice may not be removed or altered from any source or binary distribution.
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin

+ 2 - 2
Sources/CryptoSwift/Multiplatform.swift

@@ -6,7 +6,7 @@
 //  Copyright © 2015 Marcin Krzyzanowski. All rights reserved.
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
     import SwiftShims
 #else
@@ -15,7 +15,7 @@
 
 @available(*, deprecated: 0.6.1, message: "Please don't use it. Use random generator suitable for the platform.")
 func cs_arc4random_uniform(_ upperBound: UInt32) -> UInt32 {
-    #if os(Linux) || os(Android)
+    #if os(Linux) || os(Android) || os(FreeBSD)
         return _swift_stdlib_cxx11_mt19937_uniform(upperBound)
     #else
         return arc4random_uniform(upperBound)

+ 1 - 1
Sources/CryptoSwift/PKCS5/PBKDF2.swift

@@ -8,7 +8,7 @@
 //  https://www.ietf.org/rfc/rfc2898.txt
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin

+ 1 - 1
Sources/CryptoSwift/SHA3.swift

@@ -9,7 +9,7 @@
 //  http://keccak.noekeon.org/specs_summary.html
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin

+ 1 - 1
Sources/CryptoSwift/SecureBytes.swift

@@ -6,7 +6,7 @@
 //  Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin

+ 1 - 1
Sources/CryptoSwift/UInt32+Extension.swift

@@ -6,7 +6,7 @@
 //  Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved.
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin

+ 1 - 1
Sources/CryptoSwift/UInt8+Extension.swift

@@ -6,7 +6,7 @@
 //  Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved.
 //
 
-#if os(Linux) || os(Android)
+#if os(Linux) || os(Android) || os(FreeBSD)
     import Glibc
 #else
     import Darwin