cxx.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. /*`
  13. [heading `BOOST_LIB_STD_CXX`]
  14. [@http://libcxx.llvm.org/ libc++] C++ Standard Library.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`_LIBCPP_VERSION`] [__predef_detection__]]
  18. [[`_LIBCPP_VERSION`] [V.0.P]]
  19. ]
  20. */
  21. #define BOOST_LIB_STD_CXX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(_LIBCPP_VERSION)
  23. # undef BOOST_LIB_STD_CXX
  24. # define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION)
  25. #endif
  26. #if BOOST_LIB_STD_CXX
  27. # define BOOST_LIB_STD_CXX_AVAILABLE
  28. #endif
  29. #define BOOST_LIB_STD_CXX_NAME "libc++"
  30. #endif
  31. #include <boost/predef/detail/test.h>
  32. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_CXX,BOOST_LIB_STD_CXX_NAME)