Skip to content

Commit 76eea80

Browse files
fixed typecast error when compiling in C++ (#179)
1 parent af4a96e commit 76eea80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/include/lib_export.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ typedef struct NativeSymbol {
1515
void *func_ptr;
1616
} NativeSymbol;
1717

18-
#define EXPORT_WASM_API(symbol) {#symbol, symbol}
19-
#define EXPORT_WASM_API2(symbol) {#symbol, symbol##_wrapper}
18+
#define EXPORT_WASM_API(symbol) {#symbol, (void*)symbol}
19+
#define EXPORT_WASM_API2(symbol) {#symbol, (void*)symbol##_wrapper}
2020

2121
/**
2222
* Get the exported APIs of base lib

0 commit comments

Comments
 (0)