diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-08-12 20:05:31 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-08-12 20:05:31 +0900 |
| commit | 77c35e7097ae7b24422a9da609a4548340f74409 (patch) | |
| tree | 07fad7870ccccd644e384b8bc109a1fe4060e3b4 | |
| parent | 2aa70e96904772d26b5199ace25757b058fe09cd (diff) | |
| download | mruby-77c35e7097ae7b24422a9da609a4548340f74409.tar.gz mruby-77c35e7097ae7b24422a9da609a4548340f74409.zip | |
Simplify MSVC detection to `mrb_static_assert`
| -rw-r--r-- | include/mruby.h | 2 |
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__ && \ |
