mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
It should be canImport(Darwin) not os(Darwin)
This commit is contained in:
1 parent
65186104cc
commit
a212bf9e89
3 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#if canImport(CoreGraphics)
|
||||
import CoreGraphics
|
||||
#elseif !os(Darwin)
|
||||
#elseif !canImport(Darwin)
|
||||
import Foundation
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@ import GRDB
|
||||
|
||||
#if canImport(CoreGraphics)
|
||||
import CoreGraphics
|
||||
#elseif !os(Darwin)
|
||||
#elseif !canImport(Darwin)
|
||||
import Foundation
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user