Skip to content

Commit 77a4d17

Browse files
committed
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.
1 parent 3ecb5c5 commit 77a4d17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GRDB/Core/StatementAuthorizer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import string_h
1313
import Glibc
1414
#elseif os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
1515
import Darwin
16+
#elseif os(Windows)
17+
import ucrt
1618
#endif
1719

1820
/// `StatementAuthorizer` provides information about compiled database

0 commit comments

Comments
 (0)