Browse Source

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

Ozkan Sezer 4 years ago
parent
commit
2f248a2a31
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/cocoa/SDL_cocoaevents.m

+ 3 - 0
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)
 {