Fixed compile error on Mac OS X 10.4
authorSam Lantinga <slouken@libsdl.org>
Mon, 18 Jan 2010 14:12:29 +0000
changeset 3676 1ab77e93a6c9
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
--- 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 <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
 
--- 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;