m4/ax_cxx_compile_stdcxx.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 75d6778cba55b8ebfc47058c9d5ab058c779d603 Author: Miklos Vajna <[email protected]> Date: Wed Aug 2 14:53:36 2017 +0200 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. diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 index 2c18e49..d9cec90 100644 --- a/m4/ax_cxx_compile_stdcxx.m4 +++ b/m4/ax_cxx_compile_stdcxx.m4 @@ -160,7 +160,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" _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
