sunpro.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. Copyright Redshift Software, Inc. 2008-2013
  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. /*`
  12. [heading `BOOST_COMP_SUNPRO`]
  13. [@http://en.wikipedia.org/wiki/Sun_Studio_%28software%29 Sun Studio] compiler.
  14. Version number available as major, minor, and patch.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__SUNPRO_CC`] [__predef_detection__]]
  18. [[`__SUNPRO_C`] [__predef_detection__]]
  19. [[`__SUNPRO_CC`] [V.R.P]]
  20. [[`__SUNPRO_C`] [V.R.P]]
  21. ]
  22. */
  23. #define BOOST_COMP_SUNPRO BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
  25. # undef BOOST_COMP_SUNPRO
  26. # if !defined(BOOST_COMP_SUNPRO) && defined(__SUNPRO_CC)
  27. # define BOOST_COMP_SUNPRO BOOST_PREDEF_MAKE_0X_VRP(__SUNPRO_CC)
  28. # endif
  29. # if !defined(BOOST_COMP_SUNPRO) && defined(__SUNPRO_C)
  30. # define BOOST_COMP_SUNPRO BOOST_PREDEF_MAKE_0X_VRP(__SUNPRO_C)
  31. # endif
  32. # if !defined(BOOST_COMP_SUNPRO)
  33. # define BOOST_COMP_SUNPRO BOOST_VERSION_NUMBER_AVAILABLE
  34. # endif
  35. #endif
  36. #if BOOST_COMP_SUNPRO
  37. # define BOOST_COMP_SUNPRO_AVAILABLE
  38. #endif
  39. #define BOOST_COMP_SUNPRO_NAME "Sun Studio"
  40. #include <boost/predef/detail/test.h>
  41. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_SUNPRO,BOOST_COMP_SUNPRO_NAME)
  42. #endif