Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10a26d6

Browse files
committed
Check minimum macOS when defining deprecated symbols.
This makes it so we can still compile against old SDKs. Fixes #18510.
1 parent 0bdc2ab commit 10a26d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/_macosx.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define COMPILING_FOR_10_10
1919
#endif
2020

21-
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
21+
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101200
2222
/* A lot of symbols were renamed in Sierra and cause deprecation warnings
2323
so define macros for the new names if we are compiling on an older SDK */
2424
#define NSEventMaskAny NSAnyEventMask
@@ -45,7 +45,7 @@
4545
#define NSWindowStyleMaskTitled NSTitledWindowMask
4646
#endif
4747

48-
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101400
48+
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101400
4949
/* A few more deprecations in Mojave */
5050
#define NSButtonTypeMomentaryLight NSMomentaryLightButton
5151
#define NSButtonTypePushOnPushOff NSPushOnPushOffButton

0 commit comments

Comments
 (0)