It should be canImport(Darwin) not os(Darwin)

This commit is contained in:
Tim De Jong authored and Gwendal Roué committed 2025-10-12 18:03:57 +02:00
1 parent 65186104cc
commit a212bf9e89
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#if canImport(CoreGraphics)
import CoreGraphics
#elseif !os(Darwin)
#elseif !canImport(Darwin)
import Foundation
#endif
+1 -1
View File
@@ -6,7 +6,7 @@ extension NSURL: DatabaseValueConvertible {
/// Returns a TEXT database value containing the absolute URL.
public var databaseValue: DatabaseValue {
#if !os(Darwin)
#if !canImport(Darwin)
absoluteString.databaseValue
#else
absoluteString?.databaseValue ?? .null
+1 -1
View File
@@ -3,7 +3,7 @@ import GRDB
#if canImport(CoreGraphics)
import CoreGraphics
#elseif !os(Darwin)
#elseif !canImport(Darwin)
import Foundation
#endif