diff --git a/lib/c-api/tests/wasm-c-api/include/wasm.h b/lib/c-api/tests/wasm-c-api/include/wasm.h index 087319398da..54cee8fe64d 100644 --- a/lib/c-api/tests/wasm-c-api/include/wasm.h +++ b/lib/c-api/tests/wasm-c-api/include/wasm.h @@ -10,7 +10,7 @@ #include #ifndef WASM_API_EXTERN -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) #define WASM_API_EXTERN __declspec(dllimport) #else #define WASM_API_EXTERN diff --git a/lib/c-api/tests/wasm-c-api/include/wasm.hh b/lib/c-api/tests/wasm-c-api/include/wasm.hh index f0b3ee21a78..a344e240adc 100644 --- a/lib/c-api/tests/wasm-c-api/include/wasm.hh +++ b/lib/c-api/tests/wasm-c-api/include/wasm.hh @@ -12,7 +12,7 @@ #include #ifndef WASM_API_EXTERN -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) #define WASM_API_EXTERN __declspec(dllimport) #else #define WASM_API_EXTERN