# HG changeset patch # User Sam Lantinga # Date 1263823949 0 # Node ID 1ab77e93a6c9f50876154a498f8488f71dfc6037 # Parent e86edac50872a0f26d1667289c2c2da119a1f7ab Fixed compile error on Mac OS X 10.4 diff -r e86edac50872 -r 1ab77e93a6c9 src/video/cocoa/SDL_cocoakeyboard.m --- a/src/video/cocoa/SDL_cocoakeyboard.m Mon Jan 18 06:34:04 2010 +0000 +++ b/src/video/cocoa/SDL_cocoakeyboard.m Mon Jan 18 14:12:29 2010 +0000 @@ -28,16 +28,6 @@ #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 diff -r e86edac50872 -r 1ab77e93a6c9 src/video/cocoa/SDL_cocoavideo.h --- 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;