guart #include "sqlite3ext.h" with SQLITE_CORE

This commit is contained in:
Alex Garcia 2024-09-13 12:46:13 -07:00
parent 2998a24462
commit fb11a2b32e
2 changed files with 10 additions and 0 deletions

View file

@ -15,8 +15,14 @@
#include <stdio.h> #include <stdio.h>
#endif #endif
#ifndef SQLITE_CORE
#include "sqlite3ext.h" #include "sqlite3ext.h"
SQLITE_EXTENSION_INIT1 SQLITE_EXTENSION_INIT1
#else
#include "sqlite3.h"
#endif
#ifndef UINT32_TYPE #ifndef UINT32_TYPE
#ifdef HAVE_UINT32_T #ifdef HAVE_UINT32_T

View file

@ -1,7 +1,11 @@
#ifndef SQLITE_VEC_H #ifndef SQLITE_VEC_H
#define SQLITE_VEC_H #define SQLITE_VEC_H
#ifndef SQLITE_CORE
#include "sqlite3ext.h" #include "sqlite3ext.h"
#else
#include "sqlite3.h"
#endif
#ifdef SQLITE_VEC_STATIC #ifdef SQLITE_VEC_STATIC
#define SQLITE_VEC_API #define SQLITE_VEC_API