mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-21513 check if TARGET_OS_SIMULATOR has been defined
clang 11 throws an error when using undefined variables starting with TARGET_OS_, and TARGET_OS_SIMULATOR is missing in earlier versions of macOS, so the code would not compile without an additional guard. See also ICU-13440.
This commit is contained in:
parent
15d3f9f65d
commit
05b20c1ccb
1 changed files with 1 additions and 1 deletions
|
@ -1361,7 +1361,7 @@ uprv_pathIsAbsolute(const char *path)
|
|||
|
||||
/* Backup setting of ICU_DATA_DIR_PREFIX_ENV_VAR
|
||||
(needed for some Darwin ICU build environments) */
|
||||
#if U_PLATFORM_IS_DARWIN_BASED && TARGET_OS_SIMULATOR
|
||||
#if U_PLATFORM_IS_DARWIN_BASED && defined(TARGET_OS_SIMULATOR) && TARGET_OS_SIMULATOR
|
||||
# if !defined(ICU_DATA_DIR_PREFIX_ENV_VAR)
|
||||
# define ICU_DATA_DIR_PREFIX_ENV_VAR "IPHONE_SIMULATOR_ROOT"
|
||||
# endif
|
||||
|
|
Loading…
Add table
Reference in a new issue