diff --git a/core/iwasm/aot/aot_loader.c b/core/iwasm/aot/aot_loader.c index e5d9b3fc9..b1dbe7940 100644 --- a/core/iwasm/aot/aot_loader.c +++ b/core/iwasm/aot/aot_loader.c @@ -12,9 +12,6 @@ #include "../compilation/aot.h" #if WASM_ENABLE_JIT != 0 #include "../compilation/aot_llvm.h" -#endif - -#if (WASM_ENABLE_JIT != 0) #include "../interpreter/wasm_loader.h" #endif diff --git a/core/iwasm/interpreter/wasm_loader.c b/core/iwasm/interpreter/wasm_loader.c index b9f971b27..fecf75773 100644 --- a/core/iwasm/interpreter/wasm_loader.c +++ b/core/iwasm/interpreter/wasm_loader.c @@ -6503,6 +6503,7 @@ wasm_loader_get_custom_section(WASMModule *module, const char *name, return false; } +#endif static bool wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,