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:
parent
06243e7c3c
commit
ff3cb31cb4
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ sc_usb_check_disconnected(struct sc_usb *usb, int result) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static LIBUSB_CALL int
|
||||||
sc_usb_libusb_callback(libusb_context *ctx, libusb_device *device,
|
sc_usb_libusb_callback(libusb_context *ctx, libusb_device *device,
|
||||||
libusb_hotplug_event event, void *userdata) {
|
libusb_hotplug_event event, void *userdata) {
|
||||||
(void) ctx;
|
(void) ctx;
|
||||||
|
|
Loading…
Reference in a new issue