# HG changeset patch # User Sam Lantinga # Date 1253510694 0 # Node ID d390778b59c118eac0ba517049133c5c03704624 # Parent 0d7b20a4a629d1343e0e9568f315b07bdde86487 Fixed build on Mac OS X 10.4 diff -r 0d7b20a4a629 -r d390778b59c1 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 +#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