File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1010#endif
1111
1212/* Proper way to check for the OS X version we are compiling for, from
13- http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development */
13+ * https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/cross_development/Using/using.html
14+ */
1415#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
1516#define COMPILING_FOR_10_7
1617#endif
17- #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100
18+ #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
1819#define COMPILING_FOR_10_10
1920#endif
2021
21- #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
22+ #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101200
2223/* A lot of symbols were renamed in Sierra and cause deprecation warnings
2324 so define macros for the new names if we are compiling on an older SDK */
2425#define NSEventMaskAny NSAnyEventMask
4546#define NSWindowStyleMaskTitled NSTitledWindowMask
4647#endif
4748
48- #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101400
49+ #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101400
4950/* A few more deprecations in Mojave */
5051#define NSButtonTypeMomentaryLight NSMomentaryLightButton
5152#define NSButtonTypePushOnPushOff NSPushOnPushOffButton
5253#define NSBezelStyleShadowlessSquare NSShadowlessSquareBezelStyle
5354#define CGContext graphicsPort
5455#endif
5556
56- /* CGFloat was defined in Mac OS X 10.5 */
57- #ifndef CGFLOAT_DEFINED
58- #define CGFloat float
59- #endif
60-
6157
6258/* Various NSApplicationDefined event subtypes */
6359#define STOP_EVENT_LOOP 2
You can’t perform that action at this time.
0 commit comments