(libusb_hid.c) Buildfixes for CXX_BUILD

This commit is contained in:
twinaphex 2015-06-26 13:16:47 +02:00
parent 6988f1bb76
commit 46c99bd225

View File

@ -29,9 +29,9 @@
typedef struct libusb_hid typedef struct libusb_hid
{ {
libusb_hotplug_callback_handle hp;
joypad_connection_t *slots; joypad_connection_t *slots;
sthread_t *poll_thread; sthread_t *poll_thread;
int hp; /* libusb_hotplug_callback_handle is just int */
int quit; int quit;
} libusb_hid_t; } libusb_hid_t;
@ -522,9 +522,11 @@ static void *libusb_hid_init(void)
if (count > 0) if (count > 0)
libusb_free_device_list(devices, 1); libusb_free_device_list(devices, 1);
ret = libusb_hotplug_register_callback(NULL, ret = libusb_hotplug_register_callback(
LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED | NULL,
LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT, 0, (libusb_hotplug_event)(LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED |
LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT),
(libusb_hotplug_flag)LIBUSB_HOTPLUG_ENUMERATE,
LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,
LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,
LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,