We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wasmfs_create_root_dir
1 parent e8d2b61 commit c227930Copy full SHA for c227930
system/lib/wasmfs/backends/noderawfs_root.cpp
@@ -5,10 +5,6 @@
5
6
#include "emscripten/wasmfs.h"
7
8
-namespace wasmfs {
9
-
10
backend_t wasmfs_create_root_dir(void) {
11
return wasmfs_create_node_backend(".");
12
}
13
14
-} // namespace wasmfs
system/lib/wasmfs/wasmfs.cpp
@@ -89,7 +89,7 @@ WasmFS::~WasmFS() {
89
90
// Special backends that want to install themselves as the root use this hook.
91
// Otherwise, we use the default backends.
92
-__attribute__((weak)) extern backend_t wasmfs_create_root_dir(void) {
+__attribute__((weak)) extern "C" backend_t wasmfs_create_root_dir(void) {
93
#ifdef WASMFS_CASE_INSENSITIVE
94
return createIgnoreCaseBackend([]() { return createMemoryBackend(); });
95
#else
0 commit comments