2011-11-30 05:54:23 +00:00
|
|
|
/*
|
2015-07-01 17:19:29 -05:00
|
|
|
Copyright Rene Rivera 2011-2015
|
2011-11-30 05:54:23 +00:00
|
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
|
|
(See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOOST_PREDEF_LIBRARY_STD_CXX_H
|
|
|
|
#define BOOST_PREDEF_LIBRARY_STD_CXX_H
|
|
|
|
|
2013-03-18 23:06:06 -05:00
|
|
|
#include <boost/predef/library/std/_prefix.h>
|
|
|
|
|
2011-11-30 05:54:23 +00:00
|
|
|
#include <boost/predef/version_number.h>
|
|
|
|
#include <boost/predef/make.h>
|
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
/* tag::reference[]
|
|
|
|
= `BOOST_LIB_STD_CXX`
|
2011-11-30 05:54:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
http://libcxx.llvm.org/[libc++] {CPP} Standard Library.
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
[options="header"]
|
|
|
|
|===
|
|
|
|
| {predef_symbol} | {predef_version}
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
| `+_LIBCPP_VERSION+` | {predef_detection}
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
| `+_LIBCPP_VERSION+` | V.0.P
|
|
|
|
|===
|
|
|
|
*/ // end::reference[]
|
2011-11-30 05:54:23 +00:00
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#define BOOST_LIB_STD_CXX BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
2011-11-30 05:54:23 +00:00
|
|
|
|
|
|
|
#if defined(_LIBCPP_VERSION)
|
2012-07-15 03:37:23 +00:00
|
|
|
# undef BOOST_LIB_STD_CXX
|
2021-01-03 22:52:27 -06:00
|
|
|
# define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VVPPP(_LIBCPP_VERSION)
|
2011-11-30 05:54:23 +00:00
|
|
|
#endif
|
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#if BOOST_LIB_STD_CXX
|
|
|
|
# define BOOST_LIB_STD_CXX_AVAILABLE
|
|
|
|
#endif
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LIB_STD_CXX_NAME "libc++"
|
|
|
|
|
2015-06-29 18:49:33 -05:00
|
|
|
#endif
|
|
|
|
|
2011-11-30 05:54:23 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_CXX,BOOST_LIB_STD_CXX_NAME)
|