]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/predef/os/ios.h
2 Copyright Franz Detro 2014
3 Copyright Rene Rivera 2015
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_PREDEF_OS_IOS_H
10 #define BOOST_PREDEF_OS_IOS_H
12 #include <boost/predef/version_number.h>
13 #include <boost/predef/make.h>
18 http://en.wikipedia.org/wiki/iOS[iOS] operating system.
22 | {predef_symbol} | {predef_version}
24 | `+__APPLE__+` | {predef_detection}
25 | `+__MACH__+` | {predef_detection}
26 | `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | {predef_detection}
28 | `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | +__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+*1000
30 */ // end::reference[]
32 #define BOOST_OS_IOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
34 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
35 defined(__APPLE__) && defined(__MACH__) && \
36 defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
39 # define BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
43 # define BOOST_OS_IOS_AVAILABLE
44 # include <boost/predef/detail/os_detected.h>
47 #define BOOST_OS_IOS_NAME "iOS"
51 #include <boost/predef/detail/test.h>
52 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IOS
,BOOST_OS_IOS_NAME
)