File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Original file line number Diff line number Diff line change 10
10
#endif
11
11
12
12
/* 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
+ */
14
15
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
15
16
#define COMPILING_FOR_10_7
16
17
#endif
17
- #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100
18
+ #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
18
19
#define COMPILING_FOR_10_10
19
20
#endif
20
21
21
- #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
22
+ #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101200
22
23
/* A lot of symbols were renamed in Sierra and cause deprecation warnings
23
24
so define macros for the new names if we are compiling on an older SDK */
24
25
#define NSEventMaskAny NSAnyEventMask
45
46
#define NSWindowStyleMaskTitled NSTitledWindowMask
46
47
#endif
47
48
48
- #if __MAC_OS_X_VERSION_MAX_ALLOWED < 101400
49
+ #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101400
49
50
/* A few more deprecations in Mojave */
50
51
#define NSButtonTypeMomentaryLight NSMomentaryLightButton
51
52
#define NSButtonTypePushOnPushOff NSPushOnPushOffButton
52
53
#define NSBezelStyleShadowlessSquare NSShadowlessSquareBezelStyle
53
54
#define CGContext graphicsPort
54
55
#endif
55
56
56
- /* CGFloat was defined in Mac OS X 10.5 */
57
- #ifndef CGFLOAT_DEFINED
58
- #define CGFloat float
59
- #endif
60
-
61
57
62
58
/* Various NSApplicationDefined event subtypes */
63
59
#define STOP_EVENT_LOOP 2
You can’t perform that action at this time.
0 commit comments