diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-02 14:53:36 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2018-01-04 14:45:27 +0100 |
commit | efb38995c8467214f6ee6424aab182bc8c4f15ed (patch) | |
tree | 49f4ec8cbca5778dcbe84403e917d028777f56fe | |
parent | 5f5376e84c1b714542dd97aaa120334b977dcf82 (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" |