Commit 2f248a2a31c3323ecc37c00ad5e269e347ae392a

Ozkan Sezer 2021-06-11T04:00:32

SDL_cocoaevents.m: fix build against SDK < 10.12 after commit 0dd7024d.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m
index 5a0ab1f..7327869 100644
--- a/src/video/cocoa/SDL_cocoaevents.m
+++ b/src/video/cocoa/SDL_cocoaevents.m
@@ -35,6 +35,9 @@
 #ifndef NSAppKitVersionNumber10_8
 #define NSAppKitVersionNumber10_8 1187
 #endif
+#ifndef MAC_OS_X_VERSION_10_12
+#define NSEventTypeApplicationDefined NSApplicationDefined
+#endif
 
 static SDL_Window *FindSDLWindowForNSWindow(NSWindow *win)
 {