From c865a847fd01428a9b517a513052de3c60bbda41 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 12 Nov 2024 11:10:07 -0800 Subject: [PATCH] Foundation: elide extensions on Windows to match Linux Similar to Linux, elide some extensions on Windows. This is required to build this module on Windows. --- GRDB/Core/Support/Foundation/NSNumber.swift | 2 +- GRDB/Core/Support/Foundation/URL.swift | 2 +- GRDB/Core/Support/Foundation/UUID.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GRDB/Core/Support/Foundation/NSNumber.swift b/GRDB/Core/Support/Foundation/NSNumber.swift index 9867e8f43f..1c5778c19e 100644 --- a/GRDB/Core/Support/Foundation/NSNumber.swift +++ b/GRDB/Core/Support/Foundation/NSNumber.swift @@ -1,4 +1,4 @@ -#if !os(Linux) +#if !os(Linux) && !os(Windows) import Foundation private let integerRoundingBehavior = NSDecimalNumberHandler( diff --git a/GRDB/Core/Support/Foundation/URL.swift b/GRDB/Core/Support/Foundation/URL.swift index cf4b96d120..6db66ec3b8 100644 --- a/GRDB/Core/Support/Foundation/URL.swift +++ b/GRDB/Core/Support/Foundation/URL.swift @@ -1,6 +1,6 @@ import Foundation -#if !os(Linux) +#if !os(Linux) && !os(Windows) /// NSURL stores its absoluteString in the database. extension NSURL: DatabaseValueConvertible { diff --git a/GRDB/Core/Support/Foundation/UUID.swift b/GRDB/Core/Support/Foundation/UUID.swift index 1ebca9d847..7595b53ef6 100644 --- a/GRDB/Core/Support/Foundation/UUID.swift +++ b/GRDB/Core/Support/Foundation/UUID.swift @@ -9,7 +9,7 @@ import SQLite3 import Foundation -#if !os(Linux) +#if !os(Linux) && !os(Windows) /// NSUUID adopts DatabaseValueConvertible extension NSUUID: DatabaseValueConvertible { /// Returns a BLOB database value containing the uuid bytes.