From 133b4755863625c9d20a5eaa2ab00f349000db78 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 11 Mar 2020 14:17:19 -0400 Subject: [PATCH] Use LIBUSB_CALL for hidapi's read_callback function --- src/hidapi/libusb/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidapi/libusb/hid.c b/src/hidapi/libusb/hid.c index 90ca815c2..956dd9772 100644 --- a/src/hidapi/libusb/hid.c +++ b/src/hidapi/libusb/hid.c @@ -783,7 +783,7 @@ hid_device * hid_open(unsigned short vendor_id, unsigned short product_id, const return handle; } -static void read_callback(struct libusb_transfer *transfer) +static void LIBUSB_CALL read_callback(struct libusb_transfer *transfer) { hid_device *dev = (hid_device *)transfer->user_data; int res;