Skip to content

Commit

Permalink
Fixed bug 4745 - 2.0.10 fails to build against macOS 10.11 SDK
Browse files Browse the repository at this point in the history
Joshua Root

NSEventSubtypeMouseEvent was added in 10.12, so it needs to be defined on 10.11 as well
  • Loading branch information
slouken committed Jul 30, 2019
1 parent 18bcaff commit 31cb854
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/video/cocoa/SDL_cocoavideo.h
Expand Up @@ -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

Expand Down

0 comments on commit 31cb854

Please sign in to comment.