mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
42 lines
885 B
Cheetah
42 lines
885 B
Cheetah
#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
|
|
#else
|
|
#ifdef _WIN32
|
|
#define SQLITE_VEC_API __declspec(dllexport)
|
|
#else
|
|
#define SQLITE_VEC_API
|
|
#endif
|
|
#endif
|
|
|
|
#define SQLITE_VEC_VERSION "v${VERSION}"
|
|
// TODO rm
|
|
#define SQLITE_VEC_VERSION "v-metadata-experiment.01"
|
|
#define SQLITE_VEC_DATE "${DATE}"
|
|
#define SQLITE_VEC_SOURCE "${SOURCE}"
|
|
|
|
|
|
#define SQLITE_VEC_VERSION_MAJOR ${VERSION_MAJOR}
|
|
#define SQLITE_VEC_VERSION_MINOR ${VERSION_MINOR}
|
|
#define SQLITE_VEC_VERSION_PATCH ${VERSION_PATCH}
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
SQLITE_VEC_API int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg,
|
|
const sqlite3_api_routines *pApi);
|
|
|
|
#ifdef __cplusplus
|
|
} /* end of the 'extern "C"' block */
|
|
#endif
|
|
|
|
#endif /* ifndef SQLITE_VEC_H */
|