mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-05 15:48:53 +00:00
Fix libusb callback for Windows
Add LIBUSB_CALL so that the callback has the correct signature on Windows (including __attribute__((stdcall))).
This commit is contained in:
parent
0480581789
commit
0d3ed2f669
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ sc_usb_destroy(struct sc_usb *usb) {
|
||||||
libusb_exit(usb->context);
|
libusb_exit(usb->context);
|
||||||
}
|
}
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue