Fix build with the 10.10 SDK

This commit is contained in:
Sam Lantinga committed 2019-06-11 08:33:30 -07:00
1 parent f7b7a9727b
commit aa80d279d3
3 files changed
+6

No files matched your search

View File
File mode changed.
View File
File mode changed.
+6
View File
@@ -113,6 +113,12 @@ 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
#define NSEventSubtypeMouseEvent NSMouseEventSubtype
#endif
#endif /* SDL_cocoavideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */