diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-02 14:53:36 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-09-10 16:52:53 +0200 |
commit | 2e2490c0a84de2b7b51f9dc32a720f5f5d1a95c0 (patch) | |
tree | 347665d0eb5a55e20391ffb3ede1a4029862d1bb | |
parent | 4a20110a0b921019e2fd830b706e93fce47b32e2 (diff) |
m4: MSVC defines __cplusplus as 199711L still
See e.g.
<https://stackoverflow.com/questions/37503029/cplusplus-is-equal-to-199711-in-msvc-does-it-support-c11>,
on MSVC we can't depend on the value of __cplusplus, since that one is a
too low value, even if everything else works fine.
-rw-r--r-- | m4/ax_cxx_compile_stdcxx.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 index 5032bba..acc0db2 100644 --- a/m4/ax_cxx_compile_stdcxx.m4 +++ b/m4/ax_cxx_compile_stdcxx.m4 @@ -174,7 +174,7 @@ m4_define([_AX_CXX_COMPILE_STDCXX_testbody_new_in_11], [[ #error "This is not a C++ compiler" -#elif __cplusplus < 201103L +#elif __cplusplus < 201103L && !(defined _MSC_VER) #error "This is not a C++11 compiler" |