cxx.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. Copyright Rene Rivera 2011-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_CXX_H
  8. #define BOOST_PREDEF_LIBRARY_STD_CXX_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_CXX`
  14. http://libcxx.llvm.org/[libc++] {CPP} Standard Library.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+_LIBCPP_VERSION+` | {predef_detection}
  19. | `+_LIBCPP_VERSION+` | V.0.P
  20. |===
  21. */ // end::reference[]
  22. #define BOOST_LIB_STD_CXX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  23. #if defined(_LIBCPP_VERSION)
  24. # undef BOOST_LIB_STD_CXX
  25. # define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VVPPP(_LIBCPP_VERSION)
  26. #endif
  27. #if BOOST_LIB_STD_CXX
  28. # define BOOST_LIB_STD_CXX_AVAILABLE
  29. #endif
  30. #define BOOST_LIB_STD_CXX_NAME "libc++"
  31. #endif
  32. #include <boost/predef/detail/test.h>
  33. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_CXX,BOOST_LIB_STD_CXX_NAME)