1 /* 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) 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 /*` 16 [heading `BOOST_OS_IOS`] 17 18 [@http://en.wikipedia.org/wiki/iOS iOS] operating system. 19 20 [table 21 [[__predef_symbol__] [__predef_version__]] 22 23 [[`__APPLE__`] [__predef_detection__]] 24 [[`__MACH__`] [__predef_detection__]] 25 [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__predef_detection__]] 26 27 [[`__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__`] [__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000]] 28 ] 29 */ 30 31 #define BOOST_OS_IOS BOOST_VERSION_NUMBER_NOT_AVAILABLE 32 33 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \ 34 defined(__APPLE__) && defined(__MACH__) && \ 35 defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \ 36 ) 37 # undef BOOST_OS_IOS 38 # define BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000) 39 #endif 40 41 #if BOOST_OS_IOS 42 # define BOOST_OS_IOS_AVAILABLE 43 # include <boost/predef/detail/os_detected.h> 44 #endif 45 46 #define BOOST_OS_IOS_NAME "iOS" 47 48 #endif 49 50 #include <boost/predef/detail/test.h> 51 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IOS,BOOST_OS_IOS_NAME) 52