Skip to content

Commit 1cc1a3c

Browse files
committed
Solve issues with wasmtime.
1 parent d8e061b commit 1cc1a3c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/loaders/wasm_loader/source/wasm_loader_impl.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
*
1919
*/
2020

21+
#ifdef WASMTIME
22+
#if defined(_WIN32) && defined(_MSC_VER)
23+
#define WASM_API_EXTERN
24+
#endif
25+
#include <wasmtime.h>
26+
#endif
27+
2128
#include <wasm_loader/wasm_loader_function.h>
2229
#include <wasm_loader/wasm_loader_handle.h>
2330
#include <wasm_loader/wasm_loader_impl.h>
@@ -35,13 +42,6 @@
3542

3643
#include <stdlib.h>
3744

38-
#ifdef WASMTIME
39-
#if defined(_WIN32) && defined(_MSC_VER)
40-
#define WASM_API_EXTERN
41-
#endif
42-
#include <wasmtime.h>
43-
#endif
44-
4545
#define COUNT_OF(array) (sizeof(array) / sizeof(array[0]))
4646

4747
typedef struct loader_impl_wasm_type

0 commit comments

Comments
 (0)