Fixed bug 4745 - 2.0.10 fails to build against macOS 10.11 SDK
authorSam Lantinga <slouken@libsdl.org>
Tue, 30 Jul 2019 10:04:46 -0700
changeset 12956449d5819a84a
parent 12955 131ea7dcc225
child 12957 5b007d665d04
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
     1.1 --- a/src/video/cocoa/SDL_cocoavideo.h	Sat Jul 27 20:21:42 2019 +0200
     1.2 +++ b/src/video/cocoa/SDL_cocoavideo.h	Tue Jul 30 10:04:46 2019 -0700
     1.3 @@ -113,9 +113,8 @@
     1.4  /* Utility functions */
     1.5  extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
     1.6  
     1.7 -/* Fix build with the 10.10 SDK */
     1.8 -#if MAC_OS_X_VERSION_MAX_ALLOWED < 101100
     1.9 -#define NSEventSubtypeTouch NSTouchEventSubtype
    1.10 +/* Fix build with the 10.11 SDK */
    1.11 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
    1.12  #define NSEventSubtypeMouseEvent NSMouseEventSubtype
    1.13  #endif
    1.14