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)
8 #ifndef BOOST_PREDEF_OS_IOS_H
9 #define BOOST_PREDEF_OS_IOS_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_OS_IOS`]
17 [@http://en.wikipedia.org/wiki/iOS iOS] operating system.
20 [[__predef_symbol__] [__predef_version__]]
22 [[`__APPLE__`] [__predef_detection__]]
23 [[`__MACH__`] [__predef_detection__]]
24 [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__predef_detection__]]
26 [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000]]
30 #define BOOST_OS_IOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
32 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
33 defined(__APPLE__) && defined(__MACH__) && \
34 defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
37 # define BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
41 # define BOOST_OS_IOS_AVAILABLE
42 # include <boost/predef/detail/os_detected.h>
45 #define BOOST_OS_IOS_NAME "iOS"
47 #include <boost/predef/detail/test.h>
48 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IOS,BOOST_OS_IOS_NAME)