changeset 3676:1ab77e93a6c9

Fixed compile error on Mac OS X 10.4
author Sam Lantinga <slouken@libsdl.org>
date Mon, 18 Jan 2010 14:12:29 +0000
parents e86edac50872
children cec9ea711294
files src/video/cocoa/SDL_cocoakeyboard.m src/video/cocoa/SDL_cocoavideo.h
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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;