compaq.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. /*`
  12. [heading `BOOST_COMP_DEC`]
  13. [@http://www.openvms.compaq.com/openvms/brochures/deccplus/ Compaq C/C++] compiler.
  14. Version number available as major, minor, and patch.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__DECCXX`] [__predef_detection__]]
  18. [[`__DECC`] [__predef_detection__]]
  19. [[`__DECCXX_VER`] [V.R.P]]
  20. [[`__DECC_VER`] [V.R.P]]
  21. ]
  22. */
  23. #define BOOST_COMP_DEC BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__DECC) || defined(__DECCXX)
  25. # if !defined(BOOST_COMP_DEC_DETECTION) && defined(__DECCXX_VER)
  26. # define BOOST_COMP_DEC_DETECTION BOOST_PREDEF_MAKE_10_VVRR0PP00(__DECCXX_VER)
  27. # endif
  28. # if !defined(BOOST_COMP_DEC_DETECTION) && defined(__DECC_VER)
  29. # define BOOST_COMP_DEC_DETECTION BOOST_PREDEF_MAKE_10_VVRR0PP00(__DECC_VER)
  30. # endif
  31. # if !defined(BOOST_COMP_DEC_DETECTION)
  32. # define BOOST_COMP_DEC_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  33. # endif
  34. #endif
  35. #ifdef BOOST_COMP_DEC_DETECTION
  36. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  37. # define BOOST_COMP_DEC_EMULATED BOOST_COMP_DEC_DETECTION
  38. # else
  39. # undef BOOST_COMP_DEC
  40. # define BOOST_COMP_DEC BOOST_COMP_DEC_DETECTION
  41. # endif
  42. # define BOOST_COMP_DEC_AVAILABLE
  43. # include <boost/predef/detail/comp_detected.h>
  44. #endif
  45. #define BOOST_COMP_DEC_NAME "Compaq C/C++"
  46. #endif
  47. #include <boost/predef/detail/test.h>
  48. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DEC,BOOST_COMP_DEC_NAME)
  49. #ifdef BOOST_COMP_DEC_EMULATED
  50. #include <boost/predef/detail/test.h>
  51. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_DEC_EMULATED,BOOST_COMP_DEC_NAME)
  52. #endif