Skip to content

add os(Android) compiler conditions #1754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GRDB/Core/StatementAuthorizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SQLite3

#if canImport(string_h)
import string_h
#elseif os(Linux)
#elseif os(Linux) || os(Android)
import Glibc
#elseif os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
import Darwin
Expand Down
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) && !os(Windows)
#if !os(Linux) && !os(Windows) && !os(Android)
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) && !os(Windows)
#if !os(Linux) && !os(Windows) && !os(Android)
/// 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) && !os(Windows)
#if !os(Linux) && !os(Windows) && !os(Android)
/// NSUUID adopts DatabaseValueConvertible
extension NSUUID: DatabaseValueConvertible {
/// Returns a BLOB database value containing the uuid bytes.
Expand Down