Skip to content

Commit

Permalink
Foundation: elide extensions on Windows to match Linux
Browse files Browse the repository at this point in the history
Similar to Linux, elide some extensions on Windows. This is required to
build this module on Windows.
  • Loading branch information
compnerd committed Nov 12, 2024
1 parent 3ecb5c5 commit c865a84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GRDB/Core/Support/Foundation/NSNumber.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !os(Linux)
#if !os(Linux) && !os(Windows)
import Foundation

private let integerRoundingBehavior = NSDecimalNumberHandler(
Expand Down
2 changes: 1 addition & 1 deletion GRDB/Core/Support/Foundation/URL.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

#if !os(Linux)
#if !os(Linux) && !os(Windows)
/// NSURL stores its absoluteString in the database.
extension NSURL: DatabaseValueConvertible {

Expand Down
2 changes: 1 addition & 1 deletion GRDB/Core/Support/Foundation/UUID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c865a84

Please sign in to comment.