Fix libusb callback for Windows

Add LIBUSB_CALL so that the callback has the correct signature on
Windows (including __attribute__((stdcall))).

PR #3011 <https://github.com/Genymobile/scrcpy/pull/3011>
This commit is contained in:
Romain Vimont 2022-02-07 09:08:21 +01:00
parent 06243e7c3c
commit ff3cb31cb4

View file

@ -237,7 +237,7 @@ sc_usb_check_disconnected(struct sc_usb *usb, int result) {
return true;
}
static int
static LIBUSB_CALL int
sc_usb_libusb_callback(libusb_context *ctx, libusb_device *device,
libusb_hotplug_event event, void *userdata) {
(void) ctx;