Skip to content

Commit 95f98fc

Browse files
committed
Rename thread_spawn import
Following the wit-defined ABI: WebAssembly/wasi-threads#26 cf. WebAssembly/wasi-libc#387
1 parent 9cf55f9 commit 95f98fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/iwasm/libraries/lib-wasi-threads/lib_wasi_threads_wrapper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ thread_spawn_wrapper(wasm_exec_env_t exec_env, uint32 start_arg)
148148
}
149149

150150
/* clang-format off */
151-
#define REG_NATIVE_FUNC(func_name, signature) \
152-
{ #func_name, func_name##_wrapper, signature, NULL }
151+
#define REG_NATIVE_FUNC(name, func_name, signature) \
152+
{ name, func_name##_wrapper, signature, NULL }
153153
/* clang-format on */
154154

155155
static NativeSymbol native_symbols_lib_wasi_threads[] = { REG_NATIVE_FUNC(
156-
thread_spawn, "(i)i") };
156+
"thread-spawn", thread_spawn, "(i)i") };
157157

158158
uint32
159159
get_lib_wasi_threads_export_apis(NativeSymbol **p_lib_wasi_threads_apis)

0 commit comments

Comments
 (0)