]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
8 | #ifndef BOOST_PREDEF_LIBRARY_STD_CXX_H | |
9 | #define BOOST_PREDEF_LIBRARY_STD_CXX_H | |
10 | ||
11 | #include <boost/predef/library/std/_prefix.h> | |
12 | ||
13 | #include <boost/predef/version_number.h> | |
14 | #include <boost/predef/make.h> | |
15 | ||
f67539c2 TL |
16 | /* tag::reference[] |
17 | = `BOOST_LIB_STD_CXX` | |
7c673cae | 18 | |
f67539c2 | 19 | http://libcxx.llvm.org/[libc++] {CPP} Standard Library. |
7c673cae | 20 | |
f67539c2 TL |
21 | [options="header"] |
22 | |=== | |
23 | | {predef_symbol} | {predef_version} | |
7c673cae | 24 | |
f67539c2 | 25 | | `+_LIBCPP_VERSION+` | {predef_detection} |
7c673cae | 26 | |
f67539c2 TL |
27 | | `+_LIBCPP_VERSION+` | V.0.P |
28 | |=== | |
29 | */ // end::reference[] | |
7c673cae FG |
30 | |
31 | #define BOOST_LIB_STD_CXX BOOST_VERSION_NUMBER_NOT_AVAILABLE | |
32 | ||
33 | #if defined(_LIBCPP_VERSION) | |
34 | # undef BOOST_LIB_STD_CXX | |
35 | # define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION) | |
36 | #endif | |
37 | ||
38 | #if BOOST_LIB_STD_CXX | |
39 | # define BOOST_LIB_STD_CXX_AVAILABLE | |
40 | #endif | |
41 | ||
42 | #define BOOST_LIB_STD_CXX_NAME "libc++" | |
43 | ||
44 | #endif | |
45 | ||
46 | #include <boost/predef/detail/test.h> | |
47 | BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_CXX,BOOST_LIB_STD_CXX_NAME) |