Explorar o código

Fixed bug 4745 - 2.0.10 fails to build against macOS 10.11 SDK

Joshua Root

NSEventSubtypeMouseEvent was added in 10.12, so it needs to be defined on 10.11 as well
Sam Lantinga %!s(int64=6) %!d(string=hai) anos
pai
achega
31cb854f98
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      src/video/cocoa/SDL_cocoavideo.h

+ 2 - 3
src/video/cocoa/SDL_cocoavideo.h

@@ -113,9 +113,8 @@ typedef struct SDL_VideoData
 /* Utility functions */
 extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
 
-/* Fix build with the 10.10 SDK */
-#if MAC_OS_X_VERSION_MAX_ALLOWED < 101100
-#define NSEventSubtypeTouch NSTouchEventSubtype
+/* Fix build with the 10.11 SDK */
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
 #define NSEventSubtypeMouseEvent NSMouseEventSubtype
 #endif