Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoakeyboard.m @ 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 | 00cace2d9080 |
children | 455a6c47d2c6 |
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