File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include < fx.h>
9
9
#import < Cocoa/Cocoa.h>
10
10
11
+ #ifndef MAC_OS_X_VERSION_10_12
12
+ #define MAC_OS_X_VERSION_10_12 101200
13
+ #endif
14
+
15
+ // macOS 10.12 deprecated NSAnyEventMask in favor of NSEventMaskAny
16
+ #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
17
+ #define NSEventMaskAny NSAnyEventMask
18
+ #endif
19
+
11
20
extern FXMainWindow *g_main_window;
12
21
13
22
@@ -77,7 +86,7 @@ - (void) handleQuitEvent:(NSAppleEventDescriptor*)event withReplyEvent:(NSAppleE
77
86
78
87
NSAutoreleasePool *pool = [NSAutoreleasePool new ];
79
88
while (1 ) {
80
- NSEvent * event = [NSApp nextEventMatchingMask: NSAnyEventMask
89
+ NSEvent * event = [NSApp nextEventMatchingMask: NSEventMaskAny
81
90
untilDate: nil
82
91
inMode: NSDefaultRunLoopMode
83
92
dequeue: YES ];
You can’t perform that action at this time.
0 commit comments