src/joystick/darwin/SDL_sysjoystick.c
changeset 209 c995b877bc5b
parent 208 ab4abaf66814
child 210 582abf60e21e
equal deleted inserted replaced
208:ab4abaf66814 209:c995b877bc5b
    31 #include <sysexits.h>
    31 #include <sysexits.h>
    32 #include <mach/mach.h>
    32 #include <mach/mach.h>
    33 #include <mach/mach_error.h>
    33 #include <mach/mach_error.h>
    34 #include <IOKit/IOKitLib.h>
    34 #include <IOKit/IOKitLib.h>
    35 #include <IOKit/IOCFPlugIn.h>
    35 #include <IOKit/IOCFPlugIn.h>
       
    36 #ifdef MACOS_10_0_4
       
    37 #include <IOKit/hidsystem/IOHIDUsageTables.h>
       
    38 #else
       
    39 /* The header was moved here in MacOS X 10.1 */
    36 #include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h>
    40 #include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h>
       
    41 #endif
    37 #include <IOKit/hid/IOHIDLib.h>
    42 #include <IOKit/hid/IOHIDLib.h>
    38 #include <IOKit/hid/IOHIDKeys.h>
    43 #include <IOKit/hid/IOHIDKeys.h>
    39 #include <CoreFoundation/CoreFoundation.h>
    44 #include <CoreFoundation/CoreFoundation.h>
    40 
    45 
    41 #include "SDL_error.h"
    46 #include "SDL_error.h"