Brian Silverman | 44c68b1 | 2018-08-04 23:56:44 -0700 | [diff] [blame^] | 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_ARCHITECTURE_CONVEX_H |
| 9 | #define BOOST_PREDEF_ARCHITECTURE_CONVEX_H |
| 10 | |
| 11 | #include <boost/predef/version_number.h> |
| 12 | #include <boost/predef/make.h> |
| 13 | |
| 14 | /*` |
| 15 | [heading `BOOST_ARCH_CONVEX`] |
| 16 | |
| 17 | [@http://en.wikipedia.org/wiki/Convex_Computer Convex Computer] architecture. |
| 18 | |
| 19 | [table |
| 20 | [[__predef_symbol__] [__predef_version__]] |
| 21 | |
| 22 | [[`__convex__`] [__predef_detection__]] |
| 23 | |
| 24 | [[`__convex_c1__`] [1.0.0]] |
| 25 | [[`__convex_c2__`] [2.0.0]] |
| 26 | [[`__convex_c32__`] [3.2.0]] |
| 27 | [[`__convex_c34__`] [3.4.0]] |
| 28 | [[`__convex_c38__`] [3.8.0]] |
| 29 | ] |
| 30 | */ |
| 31 | |
| 32 | #define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 33 | |
| 34 | #if defined(__convex__) |
| 35 | # undef BOOST_ARCH_CONVEX |
| 36 | # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c1__) |
| 37 | # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(1,0,0) |
| 38 | # endif |
| 39 | # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c2__) |
| 40 | # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(2,0,0) |
| 41 | # endif |
| 42 | # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c32__) |
| 43 | # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,2,0) |
| 44 | # endif |
| 45 | # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c34__) |
| 46 | # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,4,0) |
| 47 | # endif |
| 48 | # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c38__) |
| 49 | # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,8,0) |
| 50 | # endif |
| 51 | # if !defined(BOOST_ARCH_CONVEX) |
| 52 | # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER_AVAILABLE |
| 53 | # endif |
| 54 | #endif |
| 55 | |
| 56 | #if BOOST_ARCH_CONVEX |
| 57 | # define BOOST_ARCH_CONVEX_AVAILABLE |
| 58 | #endif |
| 59 | |
| 60 | #define BOOST_ARCH_CONVEX_NAME "Convex Computer" |
| 61 | |
| 62 | #endif |
| 63 | |
| 64 | #include <boost/predef/detail/test.h> |
| 65 | BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_CONVEX,BOOST_ARCH_CONVEX_NAME) |