summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-12 21:51:45 +0900
committerGitHub <[email protected]>2020-08-12 21:51:45 +0900
commit96bae1d508c84c1478aa405391ea17d3ea105d57 (patch)
tree07fad7870ccccd644e384b8bc109a1fe4060e3b4
parent2aa70e96904772d26b5199ace25757b058fe09cd (diff)
parent77c35e7097ae7b24422a9da609a4548340f74409 (diff)
downloadmruby-96bae1d508c84c1478aa405391ea17d3ea105d57.tar.gz
mruby-96bae1d508c84c1478aa405391ea17d3ea105d57.zip
Merge pull request #5065 from shuujii/simplify-MSVC-detection-to-mrb_static_assert
Simplify MSVC detection to `mrb_static_assert`
-rw-r--r--include/mruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 1ca87b390..f7012ac89 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -63,7 +63,7 @@
#endif
#if (defined __cplusplus && __cplusplus >= 201103L) || \
- (defined _WIN32 && !defined __MINGW32__) || \
+ (defined _MSC_VER) || \
(defined __GXX_EXPERIMENTAL_CXX0X__) /* for old G++/Clang++ */
# define mrb_static_assert(exp, str) static_assert(exp, str)
#elif defined __STDC_VERSION__ && \