Skip to content

Commit

Permalink
Fix build with the 10.10 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 11, 2019
1 parent f7b7a97 commit aa80d27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Empty file modified Xcode-iOS/Demos/Demos.xcodeproj/project.pbxproj 100644 → 100755
Empty file.
Empty file modified Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj 100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions src/video/cocoa/SDL_cocoavideo.h
Expand Up @@ -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: */

0 comments on commit aa80d27

Please sign in to comment.