From 76eea80046e548492b127b19df0e05170bfeaa68 Mon Sep 17 00:00:00 2001 From: Renji Panicker Date: Tue, 25 Feb 2020 07:33:26 +0530 Subject: [PATCH] fixed typecast error when compiling in C++ (#179) --- core/iwasm/include/lib_export.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/iwasm/include/lib_export.h b/core/iwasm/include/lib_export.h index 2d3de172..c7f0dbc6 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