aix.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_OS_AIX_H
  8. #define BOOST_PREDEF_OS_AIX_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_OS_AIX`
  13. http://en.wikipedia.org/wiki/AIX_operating_system[IBM AIX] operating system.
  14. Version number available as major, minor, and patch.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+_AIX+` | {predef_detection}
  19. | `+__TOS_AIX__+` | {predef_detection}
  20. | `+_AIX43+` | 4.3.0
  21. | `+_AIX41+` | 4.1.0
  22. | `+_AIX32+` | 3.2.0
  23. | `+_AIX3+` | 3.0.0
  24. |===
  25. */ // end::reference[]
  26. #define BOOST_OS_AIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  27. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  28. defined(_AIX) || defined(__TOS_AIX__) \
  29. )
  30. # undef BOOST_OS_AIX
  31. # if !defined(BOOST_OS_AIX) && defined(_AIX43)
  32. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(4,3,0)
  33. # endif
  34. # if !defined(BOOST_OS_AIX) && defined(_AIX41)
  35. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(4,1,0)
  36. # endif
  37. # if !defined(BOOST_OS_AIX) && defined(_AIX32)
  38. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(3,2,0)
  39. # endif
  40. # if !defined(BOOST_OS_AIX) && defined(_AIX3)
  41. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(3,0,0)
  42. # endif
  43. # if !defined(BOOST_OS_AIX)
  44. # define BOOST_OS_AIX BOOST_VERSION_NUMBER_AVAILABLE
  45. # endif
  46. #endif
  47. #if BOOST_OS_AIX
  48. # define BOOST_OS_AIX_AVAILABLE
  49. # include <boost/predef/detail/os_detected.h>
  50. #endif
  51. #define BOOST_OS_AIX_NAME "IBM AIX"
  52. #endif
  53. #include <boost/predef/detail/test.h>
  54. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_AIX,BOOST_OS_AIX_NAME)