Fixed compile error on Mac OS X 10.4
authorSam Lantinga <slouken@libsdl.org>
Mon, 18 Jan 2010 14:12:29 +0000
changeset 36761ab77e93a6c9
parent 3675 e86edac50872
child 3677 cec9ea711294
Fixed compile error on Mac OS X 10.4
src/video/cocoa/SDL_cocoakeyboard.m
src/video/cocoa/SDL_cocoavideo.h
     1.1 --- a/src/video/cocoa/SDL_cocoakeyboard.m	Mon Jan 18 06:34:04 2010 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoakeyboard.m	Mon Jan 18 14:12:29 2010 +0000
     1.3 @@ -28,16 +28,6 @@
     1.4  
     1.5  #include <Carbon/Carbon.h>
     1.6  
     1.7 -#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
     1.8 -#if __LP64__
     1.9 -typedef long NSInteger;
    1.10 -typedef unsigned long NSUInteger;
    1.11 -#else
    1.12 -typedef int NSInteger;
    1.13 -typedef unsigned int NSUInteger;
    1.14 -#endif
    1.15 -#endif
    1.16 -
    1.17  //#define DEBUG_IME NSLog
    1.18  #define DEBUG_IME
    1.19  
     2.1 --- a/src/video/cocoa/SDL_cocoavideo.h	Mon Jan 18 06:34:04 2010 +0000
     2.2 +++ b/src/video/cocoa/SDL_cocoavideo.h	Mon Jan 18 14:12:29 2010 +0000
     2.3 @@ -39,6 +39,16 @@
     2.4  #include "SDL_cocoaopengl.h"
     2.5  #include "SDL_cocoawindow.h"
     2.6  
     2.7 +#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
     2.8 +#if __LP64__
     2.9 +typedef long NSInteger;
    2.10 +typedef unsigned long NSUInteger;
    2.11 +#else
    2.12 +typedef int NSInteger;
    2.13 +typedef unsigned int NSUInteger;
    2.14 +#endif
    2.15 +#endif
    2.16 +
    2.17  /* Private display data */
    2.18  
    2.19  @class SDLTranslatorResponder;