sgi_mipspro.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_SGI_MIPSPRO_H
  8. #define BOOST_PREDEF_COMPILER_SGI_MIPSPRO_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_COMP_SGI`
  13. http://en.wikipedia.org/wiki/MIPSpro[SGI MIPSpro] compiler.
  14. Version number available as major, minor, and patch.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__sgi+` | {predef_detection}
  19. | `sgi` | {predef_detection}
  20. | `+_SGI_COMPILER_VERSION+` | V.R.P
  21. | `+_COMPILER_VERSION+` | V.R.P
  22. |===
  23. */ // end::reference[]
  24. #define BOOST_COMP_SGI BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__sgi) || defined(sgi)
  26. # if !defined(BOOST_COMP_SGI_DETECTION) && defined(_SGI_COMPILER_VERSION)
  27. # define BOOST_COMP_SGI_DETECTION BOOST_PREDEF_MAKE_10_VRP(_SGI_COMPILER_VERSION)
  28. # endif
  29. # if !defined(BOOST_COMP_SGI_DETECTION) && defined(_COMPILER_VERSION)
  30. # define BOOST_COMP_SGI_DETECTION BOOST_PREDEF_MAKE_10_VRP(_COMPILER_VERSION)
  31. # endif
  32. # if !defined(BOOST_COMP_SGI_DETECTION)
  33. # define BOOST_COMP_SGI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  34. # endif
  35. #endif
  36. #ifdef BOOST_COMP_SGI_DETECTION
  37. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  38. # define BOOST_COMP_SGI_EMULATED BOOST_COMP_SGI_DETECTION
  39. # else
  40. # undef BOOST_COMP_SGI
  41. # define BOOST_COMP_SGI BOOST_COMP_SGI_DETECTION
  42. # endif
  43. # define BOOST_COMP_SGI_AVAILABLE
  44. # include <boost/predef/detail/comp_detected.h>
  45. #endif
  46. #define BOOST_COMP_SGI_NAME "SGI MIPSpro"
  47. #endif
  48. #include <boost/predef/detail/test.h>
  49. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SGI,BOOST_COMP_SGI_NAME)
  50. #ifdef BOOST_COMP_SGI_EMULATED
  51. #include <boost/predef/detail/test.h>
  52. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SGI_EMULATED,BOOST_COMP_SGI_NAME)
  53. #endif