mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 20:15:05 +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);
|
||||
}
|
||||
|
||||
static int
|
||||
static LIBUSB_CALL int
|
||||
sc_usb_libusb_callback(libusb_context *ctx, libusb_device *device,
|
||||
libusb_hotplug_event event, void *userdata) {
|
||||
(void) ctx;
|
||||
|
|
Loading…
Add table
Reference in a new issue