Skip to content

Commit 21bcf5c

Browse files
authored
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
1 parent c018b8a commit 21bcf5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/common/wasm_runtime_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ wasm_runtime_load_ex(uint8 *buf, uint32 size, const LoadArgs *args,
15041504
error_buf_size);
15051505
}
15061506

1507-
WASM_RUNTIME_API_EXTERN bool
1507+
bool
15081508
wasm_runtime_resolve_symbols(WASMModuleCommon *module)
15091509
{
15101510
#if WASM_ENABLE_INTERP != 0
@@ -7845,7 +7845,7 @@ wasm_runtime_detect_native_stack_overflow_size(WASMExecEnv *exec_env,
78457845
return true;
78467846
}
78477847

7848-
WASM_RUNTIME_API_EXTERN bool
7848+
bool
78497849
wasm_runtime_is_underlying_binary_freeable(WASMModuleCommon *const module)
78507850
{
78517851
#if WASM_ENABLE_INTERP != 0

0 commit comments

Comments
 (0)