-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch Wasm headers to fix MinGW build
- Loading branch information
1 parent
e503da6
commit a41d27d
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/wasmer/include/wasm.h b/wasmer/include/wasm.h | ||
index 0873193..54cee8f 100644 | ||
--- a/wasmer/include/wasm.h | ||
+++ b/wasmer/include/wasm.h | ||
@@ -10,7 +10,7 @@ | ||
#include <assert.h> | ||
|
||
#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/wasmer/include/wasm.hh b/wasmer/include/wasm.hh | ||
index f0b3ee2..a344e24 100644 | ||
--- a/wasmer/include/wasm.hh | ||
+++ b/wasmer/include/wasm.hh | ||
@@ -12,7 +12,7 @@ | ||
#include <string> | ||
|
||
#ifndef WASM_API_EXTERN | ||
-#ifdef _WIN32 | ||
+#if defined(_WIN32) && !defined(__MINGW32__) | ||
#define WASM_API_EXTERN __declspec(dllimport) | ||
#else | ||
#define WASM_API_EXTERN |