changeset 3286:d390778b59c1

Fixed build on Mac OS X 10.4
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 05:24:54 +0000
parents 0d7b20a4a629
children 77f2f10b81a7
files src/video/cocoa/SDL_cocoakeyboard.m
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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