Fixed build on Mac OS X 10.4
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 05:24:54 +0000
changeset 3286 d390778b59c1
parent 3285 0d7b20a4a629
child 3287 77f2f10b81a7
Fixed build on Mac OS X 10.4
src/video/cocoa/SDL_cocoakeyboard.m
--- a/src/video/cocoa/SDL_cocoakeyboard.m	Sun Sep 20 23:09:30 2009 +0000
+++ b/src/video/cocoa/SDL_cocoakeyboard.m	Mon Sep 21 05:24:54 2009 +0000
@@ -28,6 +28,16 @@
 
 #include <Carbon/Carbon.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
+
 //#define DEBUG_IME NSLog
 #define DEBUG_IME