hp_acc.h 1.6 KB

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