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:
parent
cb4f8140f1
commit
2e35ba95c8
@ -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 <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
|
||||
# define BOOST_PLAT_IOS_SIMULATOR BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user