compaq.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_COMPAQ_H
  8. #define BOOST_PREDEF_COMPILER_COMPAQ_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_COMP_DEC`
  13. http://www.openvms.compaq.com/openvms/brochures/deccplus/[Compaq C/{CPP}] compiler.
  14. Version number available as major, minor, and patch.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__DECCXX+` | {predef_detection}
  19. | `+__DECC+` | {predef_detection}
  20. | `+__DECCXX_VER+` | V.R.P
  21. | `+__DECC_VER+` | V.R.P
  22. |===
  23. */ // end::reference[]
  24. #define BOOST_COMP_DEC BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__DECC) || defined(__DECCXX)
  26. # if !defined(BOOST_COMP_DEC_DETECTION) && defined(__DECCXX_VER)
  27. # define BOOST_COMP_DEC_DETECTION BOOST_PREDEF_MAKE_10_VVRR0PP00(__DECCXX_VER)
  28. # endif
  29. # if !defined(BOOST_COMP_DEC_DETECTION) && defined(__DECC_VER)
  30. # define BOOST_COMP_DEC_DETECTION BOOST_PREDEF_MAKE_10_VVRR0PP00(__DECC_VER)
  31. # endif
  32. # if !defined(BOOST_COMP_DEC_DETECTION)
  33. # define BOOST_COMP_DEC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  34. # endif
  35. #endif
  36. #ifdef BOOST_COMP_DEC_DETECTION
  37. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  38. # define BOOST_COMP_DEC_EMULATED BOOST_COMP_DEC_DETECTION
  39. # else
  40. # undef BOOST_COMP_DEC
  41. # define BOOST_COMP_DEC BOOST_COMP_DEC_DETECTION
  42. # endif
  43. # define BOOST_COMP_DEC_AVAILABLE
  44. # include <boost/predef/detail/comp_detected.h>
  45. #endif
  46. #define BOOST_COMP_DEC_NAME "Compaq C/C++"
  47. #endif
  48. #include <boost/predef/detail/test.h>
  49. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DEC,BOOST_COMP_DEC_NAME)
  50. #ifdef BOOST_COMP_DEC_EMULATED
  51. #include <boost/predef/detail/test.h>
  52. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DEC_EMULATED,BOOST_COMP_DEC_NAME)
  53. #endif