mpw.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_MPW_H
  8. #define BOOST_PREDEF_COMPILER_MPW_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_COMP_MPW`
  13. http://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop[MPW {CPP}] compiler.
  14. Version number available as major, and minor.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__MRC__+` | {predef_detection}
  19. | `MPW_C` | {predef_detection}
  20. | `MPW_CPLUS` | {predef_detection}
  21. | `+__MRC__+` | V.R.0
  22. |===
  23. */ // end::reference[]
  24. #define BOOST_COMP_MPW BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS)
  26. # if !defined(BOOST_COMP_MPW_DETECTION) && defined(__MRC__)
  27. # define BOOST_COMP_MPW_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__MRC__)
  28. # endif
  29. # if !defined(BOOST_COMP_MPW_DETECTION)
  30. # define BOOST_COMP_MPW_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  31. # endif
  32. #endif
  33. #ifdef BOOST_COMP_MPW_DETECTION
  34. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  35. # define BOOST_COMP_MPW_EMULATED BOOST_COMP_MPW_DETECTION
  36. # else
  37. # undef BOOST_COMP_MPW
  38. # define BOOST_COMP_MPW BOOST_COMP_MPW_DETECTION
  39. # endif
  40. # define BOOST_COMP_MPW_AVAILABLE
  41. # include <boost/predef/detail/comp_detected.h>
  42. #endif
  43. #define BOOST_COMP_MPW_NAME "MPW C++"
  44. #endif
  45. #include <boost/predef/detail/test.h>
  46. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MPW,BOOST_COMP_MPW_NAME)
  47. #ifdef BOOST_COMP_MPW_EMULATED
  48. #include <boost/predef/detail/test.h>
  49. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MPW_EMULATED,BOOST_COMP_MPW_NAME)
  50. #endif