Fixed error C2440: 'function': cannot convert from 'int (__cdecl *)(libusb_context *,libusb_device *,libusb_hotplug_event,void *)' to 'libusb_hotplug_callback_fn'
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

(cherry picked from commit df294acbae)
This commit is contained in:
Sam Lantinga 2026-06-10 13:28:47 -07:00
parent 7ad1368224
commit a5e02a0927

View file

@ -605,7 +605,7 @@ static libusb_hotplug_callback_handle hotplug_callback_handle;
static int shutdown_event_thread;
static hidapi_thread_state event_thread_state;
static int hotplug_callback(struct libusb_context *ctx, struct libusb_device *dev, libusb_hotplug_event event, void *user_data)
static int LIBUSB_CALL hotplug_callback(struct libusb_context *ctx, struct libusb_device *dev, libusb_hotplug_event event, void *user_data)
{
switch (event) {
case LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED: