1/*
2Copyright Rene Rivera 2008-2013
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://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/*`
15[heading `BOOST_OS_AIX`]
16
17[@http://en.wikipedia.org/wiki/AIX_operating_system IBM AIX] operating system.
18Version number available as major, minor, and patch.
19
20[table
21 [[__predef_symbol__] [__predef_version__]]
22
23 [[`_AIX`] [__predef_detection__]]
24 [[`__TOS_AIX__`] [__predef_detection__]]
25
26 [[`_AIX43`] [4.3.0]]
27 [[`_AIX41`] [4.1.0]]
28 [[`_AIX32`] [3.2.0]]
29 [[`_AIX3`] [3.0.0]]
30 ]
31 */
32
33#define BOOST_OS_AIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
34
35#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
36 defined(_AIX) || defined(__TOS_AIX__) \
37 )
38# undef BOOST_OS_AIX
39# if !defined(BOOST_OS_AIX) && defined(_AIX43)
40# define BOOST_OS_AIX BOOST_VERSION_NUMBER(4,3,0)
41# endif
42# if !defined(BOOST_OS_AIX) && defined(_AIX41)
43# define BOOST_OS_AIX BOOST_VERSION_NUMBER(4,1,0)
44# endif
45# if !defined(BOOST_OS_AIX) && defined(_AIX32)
46# define BOOST_OS_AIX BOOST_VERSION_NUMBER(3,2,0)
47# endif
48# if !defined(BOOST_OS_AIX) && defined(_AIX3)
49# define BOOST_OS_AIX BOOST_VERSION_NUMBER(3,0,0)
50# endif
51# if !defined(BOOST_OS_AIX)
52# define BOOST_OS_AIX BOOST_VERSION_NUMBER_AVAILABLE
53# endif
54#endif
55
56#if BOOST_OS_AIX
57# define BOOST_OS_AIX_AVAILABLE
58# include <boost/predef/detail/os_detected.h>
59#endif
60
61#define BOOST_OS_AIX_NAME "IBM AIX"
62
63#include <boost/predef/detail/test.h>
64BOOST_PREDEF_DECLARE_TEST(BOOST_OS_AIX,BOOST_OS_AIX_NAME)
65
66
67#endif
68