cxx.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. Copyright Redshift Software Inc 2011-2013
  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. #include <boost/predef/detail/test.h>
  31. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_CXX,BOOST_LIB_STD_CXX_NAME)
  32. #endif