From 77a4d179407e6c25a365722a985581cc1adb17bf Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 12 Nov 2024 11:10:40 -0800 Subject: [PATCH] Core: import `ucrt` on Windows for `strcmp` This uses the deprecated `strcmp` interface on Windows, which requires the C library to be imported. Add the missing import to allow building on Windows. --- GRDB/Core/StatementAuthorizer.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GRDB/Core/StatementAuthorizer.swift b/GRDB/Core/StatementAuthorizer.swift index d2427ac30..169b5dc5f 100644 --- a/GRDB/Core/StatementAuthorizer.swift +++ b/GRDB/Core/StatementAuthorizer.swift @@ -13,6 +13,8 @@ import string_h import Glibc #elseif os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) import Darwin +#elseif os(Windows) +import ucrt #endif /// `StatementAuthorizer` provides information about compiled database