m4/ax_cxx_compile_stdcxx.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit dc02413337534f2ee5d403fdd1b8e91395596bc1 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 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" _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
