Ticket #58767: 10.11-fix.patch

File 10.11-fix.patch, 558 bytes (added by jmroot (Joshua Root), 5 years ago)
  • src/video/cocoa/SDL_cocoavideo.h

    old new typedef struct SDL_VideoData 
    113113/* Utility functions */
    114114extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
    115115
    116 /* Fix build with the 10.10 SDK */
    117 #if MAC_OS_X_VERSION_MAX_ALLOWED < 101100
    118 #define NSEventSubtypeTouch NSTouchEventSubtype
     116/* Fix build with the 10.11 SDK */
     117#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
    119118#define NSEventSubtypeMouseEvent NSMouseEventSubtype
    120119#endif
    121120