forked from boostorg/predef
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
This commit is contained in:
@@ -20,6 +20,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
[[__predef_symbol__] [__predef_version__]]
|
[[__predef_symbol__] [__predef_version__]]
|
||||||
|
|
||||||
[[`TARGET_IPHONE_SIMULATOR`] [__predef_detection__]]
|
[[`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
|
// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h
|
||||||
#if BOOST_OS_IOS
|
#if BOOST_OS_IOS
|
||||||
# include <TargetConditionals.h>
|
# include <TargetConditionals.h>
|
||||||
# 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
|
# undef BOOST_PLAT_IOS_SIMULATOR
|
||||||
# define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE
|
# define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE
|
||||||
# else
|
# else
|
||||||
|
Reference in New Issue
Block a user