From 2e35ba95c80d4342a0df737ac05369639aef4587 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 13 Jan 2019 08:53:22 -0600 Subject: [PATCH] Fixes use of deprecated TARGET_IPHONE_SIMULATOR. The TARGET_IPHONE_SIMULATOR predef was deprecated in favor of TARGET_OS_SIMULATOR. We now use both predefs to detect device vs. simulator. Fixes #83 --- include/boost/predef/platform/ios.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/predef/platform/ios.h b/include/boost/predef/platform/ios.h index af1c364..83ba3c4 100644 --- a/include/boost/predef/platform/ios.h +++ b/include/boost/predef/platform/ios.h @@ -20,6 +20,7 @@ http://www.boost.org/LICENSE_1_0.txt) [[__predef_symbol__] [__predef_version__]] [[`TARGET_IPHONE_SIMULATOR`] [__predef_detection__]] + [[`TARGET_OS_SIMULATOR`] [__predef_detection__]] ] */ @@ -29,7 +30,10 @@ http://www.boost.org/LICENSE_1_0.txt) // https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h #if BOOST_OS_IOS # include -# if TARGET_IPHONE_SIMULATOR == 1 +# if defined(TARGET_OS_SIMULATOR) && (TARGET_OS_SIMULATOR == 1) +# undef BOOST_PLAT_IOS_SIMULATOR +# define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE +# elif defined(TARGET_IPHONE_SIMULATOR) && (TARGET_IPHONE_SIMULATOR == 1) # undef BOOST_PLAT_IOS_SIMULATOR # define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE # else