summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-29 23:04:02 +0900
committerGitHub <[email protected]>2020-08-29 23:04:02 +0900
commit705f95c983b7877113d9165b44e9f07cedd5fb36 (patch)
treed7a4d6ae4f872d1d74f20fb02478b9948d4196e1 /include
parent6b8664b951af9b8734d5127bd8a746a67fde283c (diff)
parent510b9e7abc33843d3fae2a4d7cf0b1213bb352cc (diff)
downloadmruby-705f95c983b7877113d9165b44e9f07cedd5fb36.tar.gz
mruby-705f95c983b7877113d9165b44e9f07cedd5fb36.zip
Merge pull request #5068 from sizious/mingw32-legacy-fixes
mruby-io: Fixing compilation issue under the legacy MinGW environment
Diffstat (limited to 'include')
-rw-r--r--include/mruby/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mruby/common.h b/include/mruby/common.h
index f704ef8df..1f91c5607 100644
--- a/include/mruby/common.h
+++ b/include/mruby/common.h
@@ -82,6 +82,9 @@ MRB_BEGIN_DECL
# elif defined(__MINGW32_MAJOR_VERSION)
# define MRB_MINGW32_VERSION (__MINGW32_MAJOR_VERSION * 1000 + __MINGW32_MINOR_VERSION)
# endif
+# if defined(__MINGW32__) && !defined(__MINGW64__)
+# define MRB_MINGW32_LEGACY
+# endif
#endif
MRB_END_DECL