mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
(libusb_hid.c) Buildfixes for CXX_BUILD
This commit is contained in:
parent
6988f1bb76
commit
46c99bd225
@ -29,9 +29,9 @@
|
||||
|
||||
typedef struct libusb_hid
|
||||
{
|
||||
libusb_hotplug_callback_handle hp;
|
||||
joypad_connection_t *slots;
|
||||
sthread_t *poll_thread;
|
||||
int hp; /* libusb_hotplug_callback_handle is just int */
|
||||
int quit;
|
||||
} libusb_hid_t;
|
||||
|
||||
@ -522,9 +522,11 @@ static void *libusb_hid_init(void)
|
||||
if (count > 0)
|
||||
libusb_free_device_list(devices, 1);
|
||||
|
||||
ret = libusb_hotplug_register_callback(NULL,
|
||||
LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED |
|
||||
LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT, 0,
|
||||
ret = libusb_hotplug_register_callback(
|
||||
NULL,
|
||||
(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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user