Skip to content

Instantly share code, notes, and snippets.

@jjgod
Created September 21, 2009 05:14
Show Gist options
  • Save jjgod/190083 to your computer and use it in GitHub Desktop.
Save jjgod/190083 to your computer and use it in GitHub Desktop.
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