From fb11a2b32e196b7d82d1fe656b3fbd1f7be79490 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Fri, 13 Sep 2024 12:46:13 -0700 Subject: [PATCH] guart #include "sqlite3ext.h" with SQLITE_CORE --- sqlite-vec.c | 6 ++++++ sqlite-vec.h.tmpl | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/sqlite-vec.c b/sqlite-vec.c index e4db66e..ffaf5a2 100644 --- a/sqlite-vec.c +++ b/sqlite-vec.c @@ -15,8 +15,14 @@ #include #endif + +#ifndef SQLITE_CORE #include "sqlite3ext.h" SQLITE_EXTENSION_INIT1 +#else + #include "sqlite3.h" +#endif + #ifndef UINT32_TYPE #ifdef HAVE_UINT32_T diff --git a/sqlite-vec.h.tmpl b/sqlite-vec.h.tmpl index ca2f164..923453e 100644 --- a/sqlite-vec.h.tmpl +++ b/sqlite-vec.h.tmpl @@ -1,7 +1,11 @@ #ifndef SQLITE_VEC_H #define SQLITE_VEC_H +#ifndef SQLITE_CORE #include "sqlite3ext.h" +#else +#include "sqlite3.h" +#endif #ifdef SQLITE_VEC_STATIC #define SQLITE_VEC_API