Skip to content

Commit ab5ce2e

Browse files
authored
Merge pull request #18468 from lorentey/deprecated_simulator_macro-4.2
[4.2][stdlib]Remove deprecated TARGET_IPHONE_SIMULATOR reference
2 parents 68f32fc + 786f6f4 commit ab5ce2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/stubs/Availability.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
static NSDictionary *systemVersionDictionaryFromPlist() {
3131
NSString *plistPath = @"/System/Library/CoreServices/SystemVersion.plist";
3232

33-
#if TARGET_IPHONE_SIMULATOR
33+
#if TARGET_OS_SIMULATOR
3434
// When targeting the iOS simulator, look in a special location so we do
3535
// not pick up the host OS version.
3636
const char *simulatorRoot = getenv("IPHONE_SIMULATOR_ROOT");

0 commit comments

Comments
 (0)