Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / predef / os / ios.h
1 /*
2 Copyright Franz Detro 2014
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_IOS_H
9 #define BOOST_PREDEF_OS_IOS_H
10
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
13
14 /*`
15 [heading `BOOST_OS_IOS`]
16
17 [@http://en.wikipedia.org/wiki/iOS iOS] operating system.
18
19 [table
20     [[__predef_symbol__] [__predef_version__]]
21
22     [[`__APPLE__`] [__predef_detection__]]
23     [[`__MACH__`] [__predef_detection__]]
24     [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__predef_detection__]]
25
26     [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000]]
27     ]
28  */
29
30 #define BOOST_OS_IOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
31
32 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
33     defined(__APPLE__) && defined(__MACH__) && \
34     defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
35     )
36 #   undef BOOST_OS_IOS
37 #   define BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
38 #endif
39
40 #if BOOST_OS_IOS
41 #   define BOOST_OS_IOS_AVAILABLE
42 #   include <boost/predef/detail/os_detected.h>
43 #endif
44
45 #define BOOST_OS_IOS_NAME "iOS"
46
47 #include <boost/predef/detail/test.h>
48 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IOS,BOOST_OS_IOS_NAME)
49
50
51 #endif