Skip to content
Merged
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
3 changes: 3 additions & 0 deletions Sources/SQLite/Core/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ import CSQLite
#else
import SQLite3
#endif
#if SWIFT_PACKAGE
import SQLiteObjc
#endif

/// A connection to SQLite.
public final class Connection {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SQLiteObjc/SQLiteObjc.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int _SQLiteRegisterTokenizer(sqlite3 *db, const char * moduleName, const char *
}

void _SQLite_dispatch_async_and_wait(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block) {
if (@available(iOS 12.0, *)) {
if (@available(macOS 10.14, iOS 12.0, *)) {
dispatch_async_and_wait(queue, block);
} else {
dispatch_sync(queue, block);
Expand Down