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