From 0d3ed2f6691e0f3915b3db9361ec453c1f257c5f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 7 Feb 2022 09:08:21 +0100 Subject: [PATCH] Fix libusb callback for Windows Add LIBUSB_CALL so that the callback has the correct signature on Windows (including __attribute__((stdcall))). --- app/src/usb/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/usb/usb.c b/app/src/usb/usb.c index d41b8f99..8fd3eb04 100644 --- a/app/src/usb/usb.c +++ b/app/src/usb/usb.c @@ -221,7 +221,7 @@ sc_usb_destroy(struct sc_usb *usb) { libusb_exit(usb->context); } -static int +static LIBUSB_CALL int sc_usb_libusb_callback(libusb_context *ctx, libusb_device *device, libusb_hotplug_event event, void *userdata) { (void) ctx;