diff src/video/cocoa/SDL_cocoavideo.h @ 3676:1ab77e93a6c9

Fixed compile error on Mac OS X 10.4
author Sam Lantinga <slouken@libsdl.org>
date Mon, 18 Jan 2010 14:12:29 +0000
parents 00cace2d9080
children f7b03b6838cb
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoavideo.h	Mon Jan 18 06:34:04 2010 +0000
+++ b/src/video/cocoa/SDL_cocoavideo.h	Mon Jan 18 14:12:29 2010 +0000
@@ -39,6 +39,16 @@
 #include "SDL_cocoaopengl.h"
 #include "SDL_cocoawindow.h"
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
+#if __LP64__
+typedef long NSInteger;
+typedef unsigned long NSUInteger;
+#else
+typedef int NSInteger;
+typedef unsigned int NSUInteger;
+#endif
+#endif
+
 /* Private display data */
 
 @class SDLTranslatorResponder;