pgvector.git / summary / log / commit / refs
commit cadfc72b75bb447a684bbfaf057609ef9bc29c2f
Author: Andrew Kane <andrew@ankane.org>
Date: Mon Apr 15 21:14:25 2024 +0000
Fixed compilation on Windows
src/halfvec.h | 2 +-
src/sparsevec.h | 2 +-
src/vector.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/halfvec.h b/src/halfvec.h
index 42b6dce9..5378b2c6 100644
--- a/src/halfvec.h
+++ b/src/halfvec.h
@@ -44,6 +44,6 @@ typedef struct HalfVector
HalfVector *InitHalfVector(int dim);
int halfvec_cmp_internal(HalfVector * a, HalfVector * b);
-Datum halfvec_l2_normalize(PG_FUNCTION_ARGS);
+PGDLLEXPORT Datum halfvec_l2_normalize(PG_FUNCTION_ARGS);
#endif
diff --git a/src/sparsevec.h b/src/sparsevec.h
index efba1bf7..52939bf5 100644
--- a/src/sparsevec.h
+++ b/src/sparsevec.h
@@ -23,6 +23,6 @@ typedef struct SparseVector
} SparseVector;
SparseVector *InitSparseVector(int dim, int nnz);
-Datum sparsevec_l2_normalize(PG_FUNCTION_ARGS);
+PGDLLEXPORT Datum sparsevec_l2_normalize(PG_FUNCTION_ARGS);
#endif
diff --git a/src/vector.h b/src/vector.h
index 4742c371..6662a590 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -21,6 +21,6 @@ typedef struct Vector
Vector *InitVector(int dim);
void PrintVector(char *msg, Vector * vector);
int vector_cmp_internal(Vector * a, Vector * b);
-Datum l2_normalize(PG_FUNCTION_ARGS);
+PGDLLEXPORT Datum l2_normalize(PG_FUNCTION_ARGS);
#endif
[parent: ceeba6a134bc]