Skip to content

Commit ce11dab

Browse files
committed
Fixed build for swift packages
1 parent a6b184a commit ce11dab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/SQLite/Core/Connection.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ import CSQLite
3333
#else
3434
import SQLite3
3535
#endif
36+
#if SWIFT_PACKAGE
37+
import SQLiteObjc
38+
#endif
3639

3740
/// A connection to SQLite.
3841
public final class Connection {

Sources/SQLiteObjc/SQLiteObjc.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int _SQLiteRegisterTokenizer(sqlite3 *db, const char * moduleName, const char *
138138
}
139139

140140
void _SQLite_dispatch_async_and_wait(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block) {
141-
if (@available(iOS 12.0, *)) {
141+
if (@available(macOS 10.14, iOS 12.0, *)) {
142142
dispatch_async_and_wait(queue, block);
143143
} else {
144144
dispatch_sync(queue, block);

0 commit comments

Comments
 (0)