diff --git a/core/iwasm/include/lib_export.h b/core/iwasm/include/lib_export.h index 2d3de1722..c7f0dbc63 100644 --- a/core/iwasm/include/lib_export.h +++ b/core/iwasm/include/lib_export.h @@ -15,8 +15,8 @@ typedef struct NativeSymbol { void *func_ptr; } NativeSymbol; -#define EXPORT_WASM_API(symbol) {#symbol, symbol} -#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} /** * Get the exported APIs of base lib