comeau.h 1.7 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_COMEAU_H
  8. #define BOOST_PREDEF_COMPILER_COMEAU_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. #define BOOST_COMP_COMO BOOST_VERSION_NUMBER_NOT_AVAILABLE
  12. /* tag::reference[]
  13. = `BOOST_COMP_COMO`
  14. http://en.wikipedia.org/wiki/Comeau_C/C%2B%2B[Comeau {CPP}] compiler.
  15. Version number available as major, minor, and patch.
  16. [options="header"]
  17. |===
  18. | {predef_symbol} | {predef_version}
  19. | `+__COMO__+` | {predef_detection}
  20. | `+__COMO_VERSION__+` | V.R.P
  21. |===
  22. */ // end::reference[]
  23. #if defined(__COMO__)
  24. # if !defined(BOOST_COMP_COMO_DETECTION) && defined(__COMO_VERSION__)
  25. # define BOOST_COMP_COMO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__COMO_VERSION__)
  26. # endif
  27. # if !defined(BOOST_COMP_COMO_DETECTION)
  28. # define BOOST_COMP_COMO_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  29. # endif
  30. #endif
  31. #ifdef BOOST_COMP_COMO_DETECTION
  32. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  33. # define BOOST_COMP_COMO_EMULATED BOOST_COMP_COMO_DETECTION
  34. # else
  35. # undef BOOST_COMP_COMO
  36. # define BOOST_COMP_COMO BOOST_COMP_COMO_DETECTION
  37. # endif
  38. # define BOOST_COMP_COMO_AVAILABLE
  39. # include <boost/predef/detail/comp_detected.h>
  40. #endif
  41. #define BOOST_COMP_COMO_NAME "Comeau C++"
  42. #endif
  43. #include <boost/predef/detail/test.h>
  44. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_COMO,BOOST_COMP_COMO_NAME)
  45. #ifdef BOOST_COMP_COMO_EMULATED
  46. #include <boost/predef/detail/test.h>
  47. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_COMO_EMULATED,BOOST_COMP_COMO_NAME)
  48. #endif