1 | /* |
2 | Copyright Rene Rivera 2008-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_COMPILER_COMEAU_H |
9 | #define BOOST_PREDEF_COMPILER_COMEAU_H |
10 | |
11 | #include <boost/predef/version_number.h> |
12 | #include <boost/predef/make.h> |
13 | |
14 | #define BOOST_COMP_COMO BOOST_VERSION_NUMBER_NOT_AVAILABLE |
15 | |
16 | /*` |
17 | [heading `BOOST_COMP_COMO`] |
18 | |
19 | [@http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B Comeau C++] compiler. |
20 | Version number available as major, minor, and patch. |
21 | |
22 | [table |
23 | [[__predef_symbol__] [__predef_version__]] |
24 | |
25 | [[`__COMO__`] [__predef_detection__]] |
26 | |
27 | [[`__COMO_VERSION__`] [V.R.P]] |
28 | ] |
29 | */ |
30 | |
31 | #if defined(__COMO__) |
32 | # if !defined(BOOST_COMP_COMO_DETECTION) && defined(__COMO_VERSION__) |
33 | # define BOOST_COMP_COMO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__COMO_VERSION__) |
34 | # endif |
35 | # if !defined(BOOST_COMP_COMO_DETECTION) |
36 | # define BOOST_COMP_COMO_DETECTION BOOST_VERSION_NUMBER_AVAILABLE |
37 | # endif |
38 | #endif |
39 | |
40 | #ifdef BOOST_COMP_COMO_DETECTION |
41 | # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED) |
42 | # define BOOST_COMP_COMO_EMULATED BOOST_COMP_COMO_DETECTION |
43 | # else |
44 | # undef BOOST_COMP_COMO |
45 | # define BOOST_COMP_COMO BOOST_COMP_COMO_DETECTION |
46 | # endif |
47 | # define BOOST_COMP_COMO_AVAILABLE |
48 | # include <boost/predef/detail/comp_detected.h> |
49 | #endif |
50 | |
51 | #define BOOST_COMP_COMO_NAME "Comeau C++" |
52 | |
53 | #endif |
54 | |
55 | #include <boost/predef/detail/test.h> |
56 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_COMO,BOOST_COMP_COMO_NAME) |
57 | |
58 | #ifdef BOOST_COMP_COMO_EMULATED |
59 | #include <boost/predef/detail/test.h> |
60 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_COMO_EMULATED,BOOST_COMP_COMO_NAME) |
61 | #endif |
62 | |