stdcpp3.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright Rene Rivera 2008-2015
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_PREDEF_LIBRARY_STD_STDCPP3_H
  8. #define BOOST_PREDEF_LIBRARY_STD_STDCPP3_H
  9. #include <boost/predef/library/std/_prefix.h>
  10. #include <boost/predef/version_number.h>
  11. #include <boost/predef/make.h>
  12. /* tag::reference[]
  13. = `BOOST_LIB_STD_GNU`
  14. https://gcc.gnu.org/onlinedocs/libstdc%2b%2b/[GNU libstdc++] Standard {CPP} library.
  15. Version number available as year (from 1970), month, and day.
  16. [options="header"]
  17. |===
  18. | {predef_symbol} | {predef_version}
  19. | `+__GLIBCXX__+` | {predef_detection}
  20. | `+__GLIBCPP__+` | {predef_detection}
  21. | `+__GLIBCXX__+` | V.R.P
  22. | `+__GLIBCPP__+` | V.R.P
  23. |===
  24. */ // end::reference[]
  25. #define BOOST_LIB_STD_GNU BOOST_VERSION_NUMBER_NOT_AVAILABLE
  26. #if defined(__GLIBCPP__) || defined(__GLIBCXX__)
  27. # undef BOOST_LIB_STD_GNU
  28. # if defined(__GLIBCXX__)
  29. # define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCXX__)
  30. # else
  31. # define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCPP__)
  32. # endif
  33. #endif
  34. #if BOOST_LIB_STD_GNU
  35. # define BOOST_LIB_STD_GNU_AVAILABLE
  36. #endif
  37. #define BOOST_LIB_STD_GNU_NAME "GNU"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_GNU,BOOST_LIB_STD_GNU_NAME)