From fcfdab2f11df7dd08e77bcd769ece6cb9f1261e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 22 Aug 2024 08:17:04 +0200 Subject: [PATCH] Import string_h for strcmp Thanks to @karianneberg in https://github.com/groue/GRDB.swift/commit/344878cdb2e3af07f46954e3bc2b93541489bd82 --- GRDB/Core/StatementAuthorizer.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GRDB/Core/StatementAuthorizer.swift b/GRDB/Core/StatementAuthorizer.swift index 42691dbed..54d905778 100644 --- a/GRDB/Core/StatementAuthorizer.swift +++ b/GRDB/Core/StatementAuthorizer.swift @@ -1,8 +1,8 @@ -#if os(Linux) +#if canImport(string_h) +import string_h +#elseif os(Linux) import Glibc -#endif - -#if canImport(Darwin) +#elseif os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) import Darwin #endif