1/*
2Copyright Franz Detro 2014
3Copyright Rene Rivera 2015
4Distributed under the Boost Software License, Version 1.0.
5(See accompanying file LICENSE_1_0.txt or copy at
6http://www.boost.org/LICENSE_1_0.txt)
7*/
8
9#ifndef BOOST_PREDEF_OS_IOS_H
10#define BOOST_PREDEF_OS_IOS_H
11
12#include <boost/predef/version_number.h>
13#include <boost/predef/make.h>
14
15/* tag::reference[]
16= `BOOST_OS_IOS`
17
18http://en.wikipedia.org/wiki/iOS[iOS] operating system.
19
20[options="header"]
21|===
22| {predef_symbol} | {predef_version}
23
24| `+__APPLE__+` | {predef_detection}
25| `+__MACH__+` | {predef_detection}
26| `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | {predef_detection}
27
28| `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | +__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+*1000
29|===
30*/ // end::reference[]
31
32#define BOOST_OS_IOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
33
34#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
35 defined(__APPLE__) && defined(__MACH__) && \
36 defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
37 )
38# undef BOOST_OS_IOS
39# define BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
40#endif
41
42#if BOOST_OS_IOS
43# define BOOST_OS_IOS_AVAILABLE
44# include <boost/predef/detail/os_detected.h>
45#endif
46
47#define BOOST_OS_IOS_NAME "iOS"
48
49#endif
50
51#include <boost/predef/detail/test.h>
52BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IOS,BOOST_OS_IOS_NAME)
53

source code of include/boost/predef/os/ios.h