| 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_HP_ACC_H |
| 9 | #define BOOST_PREDEF_COMPILER_HP_ACC_H |
| 10 | |
| 11 | #include <boost/predef/version_number.h> |
| 12 | #include <boost/predef/make.h> |
| 13 | |
| 14 | /* tag::reference[] |
| 15 | = `BOOST_COMP_HPACC` |
| 16 | |
| 17 | HP a{CPP} compiler. |
| 18 | Version number available as major, minor, and patch. |
| 19 | |
| 20 | [options="header"] |
| 21 | |=== |
| 22 | | {predef_symbol} | {predef_version} |
| 23 | |
| 24 | | `+__HP_aCC+` | {predef_detection} |
| 25 | |
| 26 | | `+__HP_aCC+` | V.R.P |
| 27 | |=== |
| 28 | */ // end::reference[] |
| 29 | |
| 30 | #define BOOST_COMP_HPACC BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 31 | |
| 32 | #if defined(__HP_aCC) |
| 33 | # if !defined(BOOST_COMP_HPACC_DETECTION) && (__HP_aCC > 1) |
| 34 | # define BOOST_COMP_HPACC_DETECTION BOOST_PREDEF_MAKE_10_VVRRPP(__HP_aCC) |
| 35 | # endif |
| 36 | # if !defined(BOOST_COMP_HPACC_DETECTION) |
| 37 | # define BOOST_COMP_HPACC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE |
| 38 | # endif |
| 39 | #endif |
| 40 | |
| 41 | #ifdef BOOST_COMP_HPACC_DETECTION |
| 42 | # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED) |
| 43 | # define BOOST_COMP_HPACC_EMULATED BOOST_COMP_HPACC_DETECTION |
| 44 | # else |
| 45 | # undef BOOST_COMP_HPACC |
| 46 | # define BOOST_COMP_HPACC BOOST_COMP_HPACC_DETECTION |
| 47 | # endif |
| 48 | # define BOOST_COMP_HPACC_AVAILABLE |
| 49 | # include <boost/predef/detail/comp_detected.h> |
| 50 | #endif |
| 51 | |
| 52 | #define BOOST_COMP_HPACC_NAME "HP aC++" |
| 53 | |
| 54 | #endif |
| 55 | |
| 56 | #include <boost/predef/detail/test.h> |
| 57 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_HPACC,BOOST_COMP_HPACC_NAME) |
| 58 | |
| 59 | #ifdef BOOST_COMP_HPACC_EMULATED |
| 60 | #include <boost/predef/detail/test.h> |
| 61 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_HPACC_EMULATED,BOOST_COMP_HPACC_NAME) |
| 62 | #endif |
| 63 | |