Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:06

0001 /*
0002 Copyright Franz Detro 2014
0003 Copyright Rene Rivera 2015
0004 Distributed under the Boost Software License, Version 1.0.
0005 (See accompanying file LICENSE_1_0.txt or copy at
0006 http://www.boost.org/LICENSE_1_0.txt)
0007 */
0008 
0009 #ifndef BOOST_PREDEF_OS_IOS_H
0010 #define BOOST_PREDEF_OS_IOS_H
0011 
0012 #include <boost/predef/version_number.h>
0013 #include <boost/predef/make.h>
0014 
0015 /* tag::reference[]
0016 = `BOOST_OS_IOS`
0017 
0018 http://en.wikipedia.org/wiki/iOS[iOS] operating system.
0019 
0020 [options="header"]
0021 |===
0022 | {predef_symbol} | {predef_version}
0023 
0024 | `+__APPLE__+` | {predef_detection}
0025 | `+__MACH__+` | {predef_detection}
0026 | `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | {predef_detection}
0027 
0028 | `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | +__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+*1000
0029 |===
0030 */ // end::reference[]
0031 
0032 #define BOOST_OS_IOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
0033 
0034 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
0035     defined(__APPLE__) && defined(__MACH__) && \
0036     defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
0037     )
0038 #   undef BOOST_OS_IOS
0039 #   define BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
0040 #endif
0041 
0042 #if BOOST_OS_IOS
0043 #   define BOOST_OS_IOS_AVAILABLE
0044 #   include <boost/predef/detail/os_detected.h>
0045 #endif
0046 
0047 #define BOOST_OS_IOS_NAME "iOS"
0048 
0049 #endif
0050 
0051 #include <boost/predef/detail/test.h>
0052 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IOS,BOOST_OS_IOS_NAME)