Ignore:
Timestamp:
Sep 6, 2022, 1:21:57 PM (5 months ago)
Author:
Peter
Message:

update to autoconf-archive-2022.09.03

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/ax_cxx_compile_stdcxx.m4

    r4143 r4216  
    4444#   warranty.
    4545
    46 #serial 14
     46#serial 15
    4747
    4848dnl  This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro
     
    190190#error "This is not a C++ compiler"
    191191
    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
    193197
    194198#error "This is not a C++11 compiler"
     
    481485#error "This is not a C++ compiler"
    482486
    483 #elif __cplusplus < 201402L
     487#elif __cplusplus < 201402L && !defined _MSC_VER
    484488
    485489#error "This is not a C++14 compiler"
     
    605609#error "This is not a C++ compiler"
    606610
    607 #elif __cplusplus < 201703L
     611#elif __cplusplus < 201703L && !defined _MSC_VER
    608612
    609613#error "This is not a C++17 compiler"
     
    971975}  // namespace cxx17
    972976
    973 #endif  // __cplusplus < 201703L
     977#endif  // __cplusplus < 201703L && !defined _MSC_VER
    974978
    975979]])
     
    984988#error "This is not a C++ compiler"
    985989
    986 #elif __cplusplus < 202002L
     990#elif __cplusplus < 202002L && !defined _MSC_VER
    987991
    988992#error "This is not a C++20 compiler"
     
    10011005}  // namespace cxx20
    10021006
    1003 #endif  // __cplusplus < 202002L
     1007#endif  // __cplusplus < 202002L && !defined _MSC_VER
    10041008
    10051009]])
Note: See TracChangeset for help on using the changeset viewer.