From e697cafd125e393160233ce020d25ef95923e91a Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 3 Jan 2021 22:52:27 -0600 Subject: [PATCH] Fix not handling stdcxx recent versions that go above 10.x. Fixes #112 --- doc/index.html | 11 +++++++++-- include/boost/predef/library/std/cxx.h | 2 +- include/boost/predef/make.h | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/index.html b/doc/index.html index 052a5ed..6238800 100644 --- a/doc/index.html +++ b/doc/index.html @@ -6568,6 +6568,9 @@ indicates an ignored digit.

BOOST_PREDEF_MAKE_10_VPPP(V)

  • +

    BOOST_PREDEF_MAKE_10_VVPPP(V)

    +
  • +
  • BOOST_PREDEF_MAKE_10_VR0(V)

  • @@ -6800,8 +6803,12 @@ expressions. It defaults to "c++", but can be any of: "c", "cpp",

    6.1. 1.12

    -
    -

    *

    +
    +
      +
    • +

      Switch to using the endian.h header on OpenBSD. (Brad Smith)

      +
    • +
    diff --git a/include/boost/predef/library/std/cxx.h b/include/boost/predef/library/std/cxx.h index 61a09a8..470c80d 100644 --- a/include/boost/predef/library/std/cxx.h +++ b/include/boost/predef/library/std/cxx.h @@ -32,7 +32,7 @@ http://libcxx.llvm.org/[libc++] {CPP} Standard Library. #if defined(_LIBCPP_VERSION) # undef BOOST_LIB_STD_CXX -# define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION) +# define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VVPPP(_LIBCPP_VERSION) #endif #if BOOST_LIB_STD_CXX diff --git a/include/boost/predef/make.h b/include/boost/predef/make.h index 810ba45..e65a0e1 100644 --- a/include/boost/predef/make.h +++ b/include/boost/predef/make.h @@ -66,6 +66,10 @@ Macros are: */ // end::reference[] #define BOOST_PREDEF_MAKE_10_VPPP(V) BOOST_VERSION_NUMBER(((V)/1000)%10,0,(V)%1000) /* tag::reference[] +* `BOOST_PREDEF_MAKE_10_VVPPP(V)` +*/ // end::reference[] +#define BOOST_PREDEF_MAKE_10_VVPPP(V) BOOST_VERSION_NUMBER(((V)/1000)%100,0,(V)%1000) +/* tag::reference[] * `BOOST_PREDEF_MAKE_10_VR0(V)` */ // end::reference[] #define BOOST_PREDEF_MAKE_10_VR0(V) BOOST_VERSION_NUMBER(((V)/100)%10,((V)/10)%10,0)