From 21bcf5c75ddfb1e5891acb5afd3d5c82b9b74a8e Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Wed, 28 May 2025 09:05:07 +0800 Subject: [PATCH] Fix Compiler Error C2491 (#4286) > Data, static data members, and functions can be declared as `dllimports` but not defined as `dllimports`. https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2491?view=msvc-170 --- core/iwasm/common/wasm_runtime_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/iwasm/common/wasm_runtime_common.c b/core/iwasm/common/wasm_runtime_common.c index b316a6e30..1c1a20022 100644 --- a/core/iwasm/common/wasm_runtime_common.c +++ b/core/iwasm/common/wasm_runtime_common.c @@ -1504,7 +1504,7 @@ wasm_runtime_load_ex(uint8 *buf, uint32 size, const LoadArgs *args, error_buf_size); } -WASM_RUNTIME_API_EXTERN bool +bool wasm_runtime_resolve_symbols(WASMModuleCommon *module) { #if WASM_ENABLE_INTERP != 0 @@ -7845,7 +7845,7 @@ wasm_runtime_detect_native_stack_overflow_size(WASMExecEnv *exec_env, return true; } -WASM_RUNTIME_API_EXTERN bool +bool wasm_runtime_is_underlying_binary_freeable(WASMModuleCommon *const module) { #if WASM_ENABLE_INTERP != 0