add guard and c++ support to header file

This commit is contained in:
Alex Garcia 2024-05-21 14:54:35 -07:00
parent f0c9282299
commit 2e5ab64f1c

View file

@ -1,11 +1,24 @@
#ifndef SQLITE_VEC_H
#define SQLITE_VEC_H
#include "sqlite3ext.h"
#define SQLITE_VEC_VERSION "v${VERSION}"
#define SQLITE_VEC_DATE "${DATE}"
#define SQLITE_VEC_SOURCE "${SOURCE}"
#ifdef __cplusplus
extern "C" {
#endif
int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg,
const sqlite3_api_routines *pApi);
const sqlite3_api_routines *pApi);
int sqlite3_vec_fs_read_init(sqlite3 *db, char **pzErrMsg,
const sqlite3_api_routines *pApi);
const sqlite3_api_routines *pApi);
#ifdef __cplusplus
} /* end of the 'extern "C"' block */
#endif
#endif /* ifndef SQLITE_VEC_H */