aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-wasm.c
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-27 13:40:12 +0000
committerstephan <stephan@noemail.net>2022-09-27 13:40:12 +0000
commit5b9973d89849c318b0500de1fa0019181e7bd3c0 (patch)
treef6f34298ed88a7fd6a8c6d80f49c4aaae29b73ee /ext/wasm/api/sqlite3-wasm.c
parent3d64548491f6e95854b843f978a4ada16eff614c (diff)
downloadsqlite-5b9973d89849c318b0500de1fa0019181e7bd3c0.tar.gz
sqlite-5b9973d89849c318b0500de1fa0019181e7bd3c0.zip
WASM API renaming. Reworked JS API bootstrap's async post-init into a generic mechanism, no longer OPFS-specific.
FossilOrigin-Name: c42a8cb090cad1108dfd6be574202d744c59e053b505bc4c17252dc6b65d26bf
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r--ext/wasm/api/sqlite3-wasm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c
index 8750d9b20..b5b8825d2 100644
--- a/ext/wasm/api/sqlite3-wasm.c
+++ b/ext/wasm/api/sqlite3-wasm.c
@@ -543,9 +543,10 @@ int sqlite3_wasm_vfs_unlink(const char * zName){
return rc;
}
-#if defined(__EMSCRIPTEN__) && defined(SQLITE_WASM_WASMFS)
-#include <emscripten/wasmfs.h>
+#if defined(__EMSCRIPTEN__)
#include <emscripten/console.h>
+#if defined(SQLITE_WASM_WASMFS)
+#include <emscripten/wasmfs.h>
/*
** This function is NOT part of the sqlite3 public API. It is strictly
@@ -596,10 +597,11 @@ int sqlite3_wasm_init_wasmfs(const char *zMountPoint){
#else
WASM_KEEP
int sqlite3_wasm_init_wasmfs(const char *zUnused){
+ emscripten_console_warn("WASMFS OPFS is not compiled in.");
if(zUnused){/*unused*/}
return SQLITE_NOTFOUND;
}
#endif /* __EMSCRIPTEN__ && SQLITE_WASM_WASMFS */
-
+#endif
#undef WASM_KEEP