Browse Source

Fix build with the 10.10 SDK

Sam Lantinga 5 năm trước cách đây
mục cha
commit
aa80d279d3
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Xcode-iOS/Demos/Demos.xcodeproj/project.pbxproj

+ 6 - 0
Xcode-iOS/Demos/Demos.xcodeproj/project.pbxproj

@@ -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: */