From 31cb854f9818244330fb4fc0265322ec5ac8f58f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 30 Jul 2019 10:04:46 -0700 Subject: [PATCH] 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 --- src/video/cocoa/SDL_cocoavideo.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video/cocoa/SDL_cocoavideo.h b/src/video/cocoa/SDL_cocoavideo.h index efc4b37c1..e72c3ee30 100644 --- a/src/video/cocoa/SDL_cocoavideo.h +++ b/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