Mercurial > sdl-ios-xcode
diff src/joystick/darwin/SDL_sysjoystick.c @ 4104:e3945f84427f SDL-1.2
Fixed fatbuild.sh script for building on Mac OS X 10.5
The minimum PPC SDK is 10.3.9
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Dec 2007 20:39:31 +0000 |
parents | 14bec334705f |
children | d07c60f5e460 |
line wrap: on
line diff
--- a/src/joystick/darwin/SDL_sysjoystick.c Fri Dec 28 18:15:43 2007 +0000 +++ b/src/joystick/darwin/SDL_sysjoystick.c Fri Dec 28 20:39:31 2007 +0000 @@ -39,7 +39,11 @@ /* The header was moved here in Mac OS X 10.1 */ #include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h> #endif +#if MAC_OS_X_VERSION_MIN_REQUIRED == 1030 +#include "10.3.9-FIX/IOHIDLib.h" +#else #include <IOKit/hid/IOHIDLib.h> +#endif #include <IOKit/hid/IOHIDKeys.h> #include <CoreFoundation/CoreFoundation.h> #include <Carbon/Carbon.h> /* for NewPtrClear, DisposePtr */