os400.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright Rene Rivera 2011-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_OS_OS400_H
  8. #define BOOST_PREDEF_OS_OS400_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_OS_OS400`
  13. http://en.wikipedia.org/wiki/IBM_i[IBM OS/400] operating system.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__OS400__+` | {predef_detection}
  18. |===
  19. */ // end::reference[]
  20. #define BOOST_OS_OS400 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  21. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  22. defined(__OS400__) \
  23. )
  24. # undef BOOST_OS_OS400
  25. # define BOOST_OS_OS400 BOOST_VERSION_NUMBER_AVAILABLE
  26. #endif
  27. #if BOOST_OS_OS400
  28. # define BOOST_OS_OS400_AVAILABLE
  29. # include <boost/predef/detail/os_detected.h>
  30. #endif
  31. #define BOOST_OS_OS400_NAME "IBM OS/400"
  32. #endif
  33. #include <boost/predef/detail/test.h>
  34. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_OS400,BOOST_OS_OS400_NAME)