From 0c7f6f3944b16b279523623d5d2ff8058173ca25 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 13 Aug 2022 23:23:39 +0200 Subject: require SQLite >= 3.21.0 After some testing it turns out we need at least SQLite 3.21.0 to compile. We _could_ work around this and make zig-sqlite work with older SQLite versions but I don't think it's necessary because: * "old" distributions like Debian Buster, RHEL 8 ship with SQLite > 3.21.0 * in any case if people want to build for OSes where SQLite is too old they can use the bundled source code. --- errors.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'errors.zig') diff --git a/errors.zig b/errors.zig index 2beef5f..add4b37 100644 --- a/errors.zig +++ b/errors.zig @@ -2,8 +2,7 @@ const std = @import("std"); const mem = std.mem; const c = @import("c.zig").c; - -const versionGreaterThanOrEqualTo = @import("sqlite.zig").versionGreaterThanOrEqualTo; +const versionGreaterThanOrEqualTo = @import("c.zig").versionGreaterThanOrEqualTo; pub const SQLiteExtendedIOError = error{ SQLiteIOErrRead, -- cgit v1.2.3