Changeset 4216 for trunk/m4/ax_cxx_compile_stdcxx.m4
- Timestamp:
- Sep 6, 2022, 1:21:57 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/ax_cxx_compile_stdcxx.m4
r4143 r4216 44 44 # warranty. 45 45 46 #serial 1 446 #serial 15 47 47 48 48 dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro … … 190 190 #error "This is not a C++ compiler" 191 191 192 #elif __cplusplus < 201103L 192 // MSVC always sets __cplusplus to 199711L in older versions; newer versions 193 // only set it correctly if /Zc:__cplusplus is specified as well as a 194 // /std:c++NN switch: 195 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 196 #elif __cplusplus < 201103L && !defined _MSC_VER 193 197 194 198 #error "This is not a C++11 compiler" … … 481 485 #error "This is not a C++ compiler" 482 486 483 #elif __cplusplus < 201402L 487 #elif __cplusplus < 201402L && !defined _MSC_VER 484 488 485 489 #error "This is not a C++14 compiler" … … 605 609 #error "This is not a C++ compiler" 606 610 607 #elif __cplusplus < 201703L 611 #elif __cplusplus < 201703L && !defined _MSC_VER 608 612 609 613 #error "This is not a C++17 compiler" … … 971 975 } // namespace cxx17 972 976 973 #endif // __cplusplus < 201703L 977 #endif // __cplusplus < 201703L && !defined _MSC_VER 974 978 975 979 ]]) … … 984 988 #error "This is not a C++ compiler" 985 989 986 #elif __cplusplus < 202002L 990 #elif __cplusplus < 202002L && !defined _MSC_VER 987 991 988 992 #error "This is not a C++20 compiler" … … 1001 1005 } // namespace cxx20 1002 1006 1003 #endif // __cplusplus < 202002L 1007 #endif // __cplusplus < 202002L && !defined _MSC_VER 1004 1008 1005 1009 ]])
Note: See TracChangeset
for help on using the changeset viewer.