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