Skip to content

Commit

Permalink
Fix macOS 13.4 typo in dyldSPI.h
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=255271
rdar://107866431

Reviewed by Aditya Keerthi.

It should be macOS 13.3. It isn't a major issue since the version numbers only matter when the DYLD API is not available,
but it should still be fixed so third party apps can link against the open source build.

* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.cpp:
(WTF::computeSDKAlignedBehaviors):
* Source/WTF/wtf/spi/darwin/dyldSPI.h:

Canonical link: https://commits.webkit.org/262806@main
  • Loading branch information
nt1m committed Apr 11, 2023
1 parent 09dcc94 commit e9832b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.cpp
Expand Up @@ -180,7 +180,7 @@ static SDKAlignedBehaviors computeSDKAlignedBehaviors()
disableBehavior(SDKAlignedBehavior::UIBackForwardSkipsHistoryItemsWithoutUserGesture);
}

if (linkedBefore(dyld_spring_2023_os_versions, DYLD_IOS_VERSION_16_4, DYLD_MACOSX_VERSION_13_4)) {
if (linkedBefore(dyld_spring_2023_os_versions, DYLD_IOS_VERSION_16_4, DYLD_MACOSX_VERSION_13_3)) {
disableBehavior(SDKAlignedBehavior::NoShowModalDialog);
disableBehavior(SDKAlignedBehavior::DoesNotAddIntrinsicMarginsToFormControls);
disableBehavior(SDKAlignedBehavior::ProgrammaticFocusDuringUserScriptShowsInputViews);
Expand Down
6 changes: 3 additions & 3 deletions Source/WTF/wtf/spi/darwin/dyldSPI.h
Expand Up @@ -125,8 +125,8 @@
#define DYLD_MACOSX_VERSION_13_0 0x000d0000
#endif

#ifndef DYLD_MACOSX_VERSION_13_4
#define DYLD_MACOSX_VERSION_13_4 0x000d0400
#ifndef DYLD_MACOSX_VERSION_13_3
#define DYLD_MACOSX_VERSION_13_3 0x000d0300
#endif

#else
Expand Down Expand Up @@ -175,7 +175,7 @@ typedef struct {
#define DYLD_MACOSX_VERSION_12_00 0x000c0000
#define DYLD_MACOSX_VERSION_12_3 0x000c0300
#define DYLD_MACOSX_VERSION_13_0 0x000d0000
#define DYLD_MACOSX_VERSION_13_4 0x000d0400
#define DYLD_MACOSX_VERSION_13_3 0x000d0300

#endif

Expand Down

0 comments on commit e9832b8

Please sign in to comment.