1 | /* |
2 | Copyright Rene Rivera 2008-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 | |
8 | #ifndef BOOST_PREDEF_LIBRARY_STD_STDCPP3_H |
9 | #define BOOST_PREDEF_LIBRARY_STD_STDCPP3_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 | |
16 | /*` |
17 | [heading `BOOST_LIB_STD_GNU`] |
18 | |
19 | [@http://gcc.gnu.org/libstdc++/ GNU libstdc++] Standard C++ library. |
20 | Version number available as year (from 1970), month, and day. |
21 | |
22 | [table |
23 | [[__predef_symbol__] [__predef_version__]] |
24 | |
25 | [[`__GLIBCXX__`] [__predef_detection__]] |
26 | [[`__GLIBCPP__`] [__predef_detection__]] |
27 | |
28 | [[`__GLIBCXX__`] [V.R.P]] |
29 | [[`__GLIBCPP__`] [V.R.P]] |
30 | ] |
31 | */ |
32 | |
33 | #define BOOST_LIB_STD_GNU BOOST_VERSION_NUMBER_NOT_AVAILABLE |
34 | |
35 | #if defined(__GLIBCPP__) || defined(__GLIBCXX__) |
36 | # undef BOOST_LIB_STD_GNU |
37 | # if defined(__GLIBCXX__) |
38 | # define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCXX__) |
39 | # else |
40 | # define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCPP__) |
41 | # endif |
42 | #endif |
43 | |
44 | #if BOOST_LIB_STD_GNU |
45 | # define BOOST_LIB_STD_GNU_AVAILABLE |
46 | #endif |
47 | |
48 | #define BOOST_LIB_STD_GNU_NAME "GNU" |
49 | |
50 | #include <boost/predef/detail/test.h> |
51 | BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_GNU,BOOST_LIB_STD_GNU_NAME) |
52 | |
53 | |
54 | #endif |
55 | |