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.
1 parent af4a96e commit 76eea80Copy full SHA for 76eea80
core/iwasm/include/lib_export.h
@@ -15,8 +15,8 @@ typedef struct NativeSymbol {
15
void *func_ptr;
16
} NativeSymbol;
17
18
-#define EXPORT_WASM_API(symbol) {#symbol, symbol}
19
-#define EXPORT_WASM_API2(symbol) {#symbol, symbol##_wrapper}
+#define EXPORT_WASM_API(symbol) {#symbol, (void*)symbol}
+#define EXPORT_WASM_API2(symbol) {#symbol, (void*)symbol##_wrapper}
20
21
/**
22
* Get the exported APIs of base lib
0 commit comments