summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-08-02 14:53:36 +0200
committerDavid Tardon <dtardon@redhat.com>2018-01-04 14:45:27 +0100
commitefb38995c8467214f6ee6424aab182bc8c4f15ed (patch)
tree49f4ec8cbca5778dcbe84403e917d028777f56fe
parent5f5376e84c1b714542dd97aaa120334b977dcf82 (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.m42
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"