stdcpp3.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /*`
  13. [heading `BOOST_LIB_STD_GNU`]
  14. [@http://gcc.gnu.org/libstdc++/ GNU libstdc++] Standard C++ library.
  15. Version number available as year (from 1970), month, and day.
  16. [table
  17. [[__predef_symbol__] [__predef_version__]]
  18. [[`__GLIBCXX__`] [__predef_detection__]]
  19. [[`__GLIBCPP__`] [__predef_detection__]]
  20. [[`__GLIBCXX__`] [V.R.P]]
  21. [[`__GLIBCPP__`] [V.R.P]]
  22. ]
  23. */
  24. #define BOOST_LIB_STD_GNU BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__GLIBCPP__) || defined(__GLIBCXX__)
  26. # undef BOOST_LIB_STD_GNU
  27. # if defined(__GLIBCXX__)
  28. # define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCXX__)
  29. # else
  30. # define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCPP__)
  31. # endif
  32. #endif
  33. #if BOOST_LIB_STD_GNU
  34. # define BOOST_LIB_STD_GNU_AVAILABLE
  35. #endif
  36. #define BOOST_LIB_STD_GNU_NAME "GNU"
  37. #endif
  38. #include <boost/predef/detail/test.h>
  39. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_GNU,BOOST_LIB_STD_GNU_NAME)