Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*
0002 Copyright Ruslan Baratov 2017
0003 Copyright Rene Rivera 2017
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_PLAT_IOS_H
0010 #define BOOST_PREDEF_PLAT_IOS_H
0011 
0012 #include <boost/predef/os/ios.h> // BOOST_OS_IOS
0013 #include <boost/predef/version_number.h> // BOOST_VERSION_NUMBER_NOT_AVAILABLE
0014 
0015 /* tag::reference[]
0016 = `BOOST_PLAT_IOS_DEVICE`
0017 = `BOOST_PLAT_IOS_SIMULATOR`
0018 
0019 [options="header"]
0020 |===
0021 | {predef_symbol} | {predef_version}
0022 
0023 | `TARGET_IPHONE_SIMULATOR` | {predef_detection}
0024 | `TARGET_OS_SIMULATOR` | {predef_detection}
0025 |===
0026 */ // end::reference[]
0027 
0028 #define BOOST_PLAT_IOS_DEVICE BOOST_VERSION_NUMBER_NOT_AVAILABLE
0029 #define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_NOT_AVAILABLE
0030 
0031 // https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h
0032 #if BOOST_OS_IOS
0033 #    include <TargetConditionals.h>
0034 #    if defined(TARGET_OS_SIMULATOR) && (TARGET_OS_SIMULATOR == 1)
0035 #        undef BOOST_PLAT_IOS_SIMULATOR
0036 #        define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE
0037 #    elif defined(TARGET_IPHONE_SIMULATOR) && (TARGET_IPHONE_SIMULATOR == 1)
0038 #        undef BOOST_PLAT_IOS_SIMULATOR
0039 #        define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE
0040 #    else
0041 #        undef BOOST_PLAT_IOS_DEVICE
0042 #        define BOOST_PLAT_IOS_DEVICE BOOST_VERSION_NUMBER_AVAILABLE
0043 #    endif
0044 #endif
0045 
0046 #if BOOST_PLAT_IOS_SIMULATOR
0047 #    define BOOST_PLAT_IOS_SIMULATOR_AVAILABLE
0048 #    include <boost/predef/detail/platform_detected.h>
0049 #endif
0050 
0051 #if BOOST_PLAT_IOS_DEVICE
0052 #    define BOOST_PLAT_IOS_DEVICE_AVAILABLE
0053 #    include <boost/predef/detail/platform_detected.h>
0054 #endif
0055 
0056 #define BOOST_PLAT_IOS_SIMULATOR_NAME "iOS Simulator"
0057 #define BOOST_PLAT_IOS_DEVICE_NAME "iOS Device"
0058 
0059 #endif // BOOST_PREDEF_PLAT_IOS_H
0060 
0061 #include <boost/predef/detail/test.h>
0062 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_IOS_SIMULATOR,BOOST_PLAT_IOS_SIMULATOR_NAME)
0063 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_IOS_DEVICE,BOOST_PLAT_IOS_DEVICE_NAME)