sgi_mipspro.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 MSGPACK_PREDEF_COMPILER_SGI_MIPSPRO_H
  8. #define MSGPACK_PREDEF_COMPILER_SGI_MIPSPRO_H
  9. #include <msgpack/predef/version_number.h>
  10. #include <msgpack/predef/make.h>
  11. /*`
  12. [heading `MSGPACK_COMP_SGI`]
  13. [@http://en.wikipedia.org/wiki/MIPSpro SGI MIPSpro] compiler.
  14. Version number available as major, minor, and patch.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__sgi`] [__predef_detection__]]
  18. [[`sgi`] [__predef_detection__]]
  19. [[`_SGI_COMPILER_VERSION`] [V.R.P]]
  20. [[`_COMPILER_VERSION`] [V.R.P]]
  21. ]
  22. */
  23. #define MSGPACK_COMP_SGI MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__sgi) || defined(sgi)
  25. # if !defined(MSGPACK_COMP_SGI_DETECTION) && defined(_SGI_COMPILER_VERSION)
  26. # define MSGPACK_COMP_SGI_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(_SGI_COMPILER_VERSION)
  27. # endif
  28. # if !defined(MSGPACK_COMP_SGI_DETECTION) && defined(_COMPILER_VERSION)
  29. # define MSGPACK_COMP_SGI_DETECTION MSGPACK_PREDEF_MAKE_10_VRP(_COMPILER_VERSION)
  30. # endif
  31. # if !defined(MSGPACK_COMP_SGI_DETECTION)
  32. # define MSGPACK_COMP_SGI_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
  33. # endif
  34. #endif
  35. #ifdef MSGPACK_COMP_SGI_DETECTION
  36. # if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
  37. # define MSGPACK_COMP_SGI_EMULATED MSGPACK_COMP_SGI_DETECTION
  38. # else
  39. # undef MSGPACK_COMP_SGI
  40. # define MSGPACK_COMP_SGI MSGPACK_COMP_SGI_DETECTION
  41. # endif
  42. # define MSGPACK_COMP_SGI_AVAILABLE
  43. # include <msgpack/predef/detail/comp_detected.h>
  44. #endif
  45. #define MSGPACK_COMP_SGI_NAME "SGI MIPSpro"
  46. #endif
  47. #include <msgpack/predef/detail/test.h>
  48. MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SGI,MSGPACK_COMP_SGI_NAME)
  49. #ifdef MSGPACK_COMP_SGI_EMULATED
  50. #include <msgpack/predef/detail/test.h>
  51. MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_SGI_EMULATED,MSGPACK_COMP_SGI_NAME)
  52. #endif