Fix build with the 10.10 SDK
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Jun 2019 08:33:30 -0700
changeset 1283475dad4c8914e
parent 12833 8a5ef22c9e13
child 12835 706e38de05c9
Fix build with the 10.10 SDK
Xcode-iOS/Demos/Demos.xcodeproj/project.pbxproj
Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
src/video/cocoa/SDL_cocoavideo.h
     1.1 --- a/src/video/cocoa/SDL_cocoavideo.h	Tue Jun 11 10:12:47 2019 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoavideo.h	Tue Jun 11 08:33:30 2019 -0700
     1.3 @@ -113,6 +113,12 @@
     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 +#define NSEventSubtypeMouseEvent NSMouseEventSubtype
    1.11 +#endif
    1.12 +
    1.13  #endif /* SDL_cocoavideo_h_ */
    1.14  
    1.15  /* vi: set ts=4 sw=4 expandtab: */