]> granicus.if.org Git - icu/commit
ICU-21513 check if TARGET_OS_SIMULATOR has been defined
authorMojca Miklavec <mojca.miklavec.lists@gmail.com>
Sun, 28 Feb 2021 08:34:30 +0000 (09:34 +0100)
committerShane F. Carr <shane@unicode.org>
Wed, 7 Apr 2021 18:47:42 +0000 (13:47 -0500)
commitff702ad727d958426c222c45123085c5f943ab89
tree76e81bf3e178ccfed014469193e447200ca81be3
parentb926f52688603fbcfb1df082b2711850b3127007
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.
icu4c/source/common/putil.cpp