Skip to content

Commit a08565f

Browse files
committed
Fixed WASM compilation
1 parent 7ddfa46 commit a08565f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sqlite-vector.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ char *strcasestr(const char *haystack, const char *needle) {
4646
#include <float.h>
4747
#endif
4848

49+
#ifdef SQLITE_WASM_EXTRA_INIT
50+
#define sqlite3_mutex_alloc(_type) NULL
51+
#define sqlite3_mutex_enter(_mutex)
52+
#define sqlite3_mutex_leave(_mutex)
53+
#define sqlite3_mutex void
54+
#endif
55+
4956
#ifndef SQLITE_CORE
5057
SQLITE_EXTENSION_INIT1
5158
#endif

0 commit comments

Comments
 (0)