aix.h 1.7 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 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. /*`
  12. [heading `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. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`_AIX`] [__predef_detection__]]
  18. [[`__TOS_AIX__`] [__predef_detection__]]
  19. [[`_AIX43`] [4.3.0]]
  20. [[`_AIX41`] [4.1.0]]
  21. [[`_AIX32`] [3.2.0]]
  22. [[`_AIX3`] [3.0.0]]
  23. ]
  24. */
  25. #define BOOST_OS_AIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  26. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  27. defined(_AIX) || defined(__TOS_AIX__) \
  28. )
  29. # undef BOOST_OS_AIX
  30. # if !defined(BOOST_OS_AIX) && defined(_AIX43)
  31. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(4,3,0)
  32. # endif
  33. # if !defined(BOOST_OS_AIX) && defined(_AIX41)
  34. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(4,1,0)
  35. # endif
  36. # if !defined(BOOST_OS_AIX) && defined(_AIX32)
  37. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(3,2,0)
  38. # endif
  39. # if !defined(BOOST_OS_AIX) && defined(_AIX3)
  40. # define BOOST_OS_AIX BOOST_VERSION_NUMBER(3,0,0)
  41. # endif
  42. # if !defined(BOOST_OS_AIX)
  43. # define BOOST_OS_AIX BOOST_VERSION_NUMBER_AVAILABLE
  44. # endif
  45. #endif
  46. #if BOOST_OS_AIX
  47. # define BOOST_OS_AIX_AVAILABLE
  48. # include <boost/predef/detail/os_detected.h>
  49. #endif
  50. #define BOOST_OS_AIX_NAME "IBM AIX"
  51. #endif
  52. #include <boost/predef/detail/test.h>
  53. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_AIX,BOOST_OS_AIX_NAME)