sys370.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_ARCHITECTURE_SYS370_H
  8. #define BOOST_PREDEF_ARCHITECTURE_SYS370_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_SYS370`
  13. http://en.wikipedia.org/wiki/System/370[System/370] architecture.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__370__+` | {predef_detection}
  18. | `+__THW_370__+` | {predef_detection}
  19. |===
  20. */ // end::reference[]
  21. #define BOOST_ARCH_SYS370 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__370__) || defined(__THW_370__)
  23. # undef BOOST_ARCH_SYS370
  24. # define BOOST_ARCH_SYS370 BOOST_VERSION_NUMBER_AVAILABLE
  25. #endif
  26. #if BOOST_ARCH_SYS370
  27. # define BOOST_ARCH_SYS370_AVAILABLE
  28. #endif
  29. #if BOOST_ARCH_SYS370
  30. # undef BOOST_ARCH_WORD_BITS_32
  31. # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
  32. #endif
  33. #define BOOST_ARCH_SYS370_NAME "System/370"
  34. #endif
  35. #include <boost/predef/detail/test.h>
  36. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SYS370,BOOST_ARCH_SYS370_NAME)