Created
September 21, 2009 05:14
-
-
Save jjgod/190083 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/SDL/src/video/cocoa/SDL_cocoakeyboard.m b/SDL/src/video/cocoa/SDL_cocoakeyboard.m | |
index e077def..c768443 100644 | |
--- a/SDL/src/video/cocoa/SDL_cocoakeyboard.m | |
+++ b/SDL/src/video/cocoa/SDL_cocoakeyboard.m | |
@@ -28,6 +28,15 @@ | |
#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 | |
#ifndef NX_DEVICERCTLKEYMASK | |
#define NX_DEVICELCTLKEYMASK 0x00000001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment