From 1676c2f04ead9a4e5844b48392bd5c44d477ce49 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Thu, 4 Aug 2022 09:41:10 +0200 Subject: use a single cImport Two cImport calls generate incompatible code: we can't use the structs generated in sqlite.zig in functions in errors.zig for example Up until now it wasn't actually a problem since in errors.zig we only ever used constants which does work, but now we want to introduce functions in this file. --- c.zig | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 c.zig (limited to 'c.zig') diff --git a/c.zig b/c.zig new file mode 100644 index 0000000..a346a3a --- /dev/null +++ b/c.zig @@ -0,0 +1,3 @@ +pub const c = @cImport({ + @cInclude("sqlite3.h"); +}); -- cgit v1.2.3