mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-04 11:40:57 +08:00
Fixed compilation warning with MSVC and Postgres 16 - fixes #598
Co-authored-by: Xing Guo <higuoxing@gmail.com>
This commit is contained in:
@@ -20,4 +20,11 @@ Vector *InitVector(int dim);
|
||||
void PrintVector(char *msg, Vector * vector);
|
||||
int vector_cmp_internal(Vector * a, Vector * b);
|
||||
|
||||
/* TODO Move to better place */
|
||||
#if PG_VERSION_NUM >= 160000
|
||||
#define FUNCTION_PREFIX
|
||||
#else
|
||||
#define FUNCTION_PREFIX PGDLLEXPORT
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user