sunpro.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_SUNPRO_H
  8. #define BOOST_PREDEF_COMPILER_SUNPRO_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_COMP_SUNPRO`
  13. http://en.wikipedia.org/wiki/Oracle_Solaris_Studio[Oracle Solaris Studio] compiler.
  14. Version number available as major, minor, and patch.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__SUNPRO_CC+` | {predef_detection}
  19. | `+__SUNPRO_C+` | {predef_detection}
  20. | `+__SUNPRO_CC+` | V.R.P
  21. | `+__SUNPRO_C+` | V.R.P
  22. | `+__SUNPRO_CC+` | VV.RR.P
  23. | `+__SUNPRO_C+` | VV.RR.P
  24. |===
  25. */ // end::reference[]
  26. #define BOOST_COMP_SUNPRO BOOST_VERSION_NUMBER_NOT_AVAILABLE
  27. #if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
  28. # if !defined(BOOST_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_CC)
  29. # if (__SUNPRO_CC < 0x5100)
  30. # define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__SUNPRO_CC)
  31. # else
  32. # define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VVRRP(__SUNPRO_CC)
  33. # endif
  34. # endif
  35. # if !defined(BOOST_COMP_SUNPRO_DETECTION) && defined(__SUNPRO_C)
  36. # if (__SUNPRO_C < 0x5100)
  37. # define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VRP(__SUNPRO_C)
  38. # else
  39. # define BOOST_COMP_SUNPRO_DETECTION BOOST_PREDEF_MAKE_0X_VVRRP(__SUNPRO_C)
  40. # endif
  41. # endif
  42. # if !defined(BOOST_COMP_SUNPRO_DETECTION)
  43. # define BOOST_COMP_SUNPRO_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  44. # endif
  45. #endif
  46. #ifdef BOOST_COMP_SUNPRO_DETECTION
  47. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  48. # define BOOST_COMP_SUNPRO_EMULATED BOOST_COMP_SUNPRO_DETECTION
  49. # else
  50. # undef BOOST_COMP_SUNPRO
  51. # define BOOST_COMP_SUNPRO BOOST_COMP_SUNPRO_DETECTION
  52. # endif
  53. # define BOOST_COMP_SUNPRO_AVAILABLE
  54. # include <boost/predef/detail/comp_detected.h>
  55. #endif
  56. #define BOOST_COMP_SUNPRO_NAME "Oracle Solaris Studio"
  57. #endif
  58. #include <boost/predef/detail/test.h>
  59. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SUNPRO,BOOST_COMP_SUNPRO_NAME)
  60. #ifdef BOOST_COMP_SUNPRO_EMULATED
  61. #include <boost/predef/detail/test.h>
  62. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SUNPRO_EMULATED,BOOST_COMP_SUNPRO_NAME)
  63. #endif