sys390.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_SYS390_H
  8. #define BOOST_PREDEF_ARCHITECTURE_SYS390_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_SYS390`
  13. http://en.wikipedia.org/wiki/System/390[System/390] architecture.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__s390__+` | {predef_detection}
  18. | `+__s390x__+` | {predef_detection}
  19. |===
  20. */ // end::reference[]
  21. #define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__s390__) || defined(__s390x__)
  23. # undef BOOST_ARCH_SYS390
  24. # define BOOST_ARCH_SYS390 BOOST_VERSION_NUMBER_AVAILABLE
  25. #endif
  26. #if BOOST_ARCH_SYS390
  27. # define BOOST_ARCH_SYS390_AVAILABLE
  28. #endif
  29. #define BOOST_ARCH_SYS390_NAME "System/390"
  30. #endif
  31. #include <boost/predef/detail/test.h>
  32. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_SYS390,BOOST_ARCH_SYS390_NAME)