hidapi/libusb: use LIBUSB_CALL for the read_callback function

Signed-off-by: Sam Lantinga <slouken@libsdl.org>
This commit is contained in:
Sam Lantinga committed 2023-05-26 08:19:04 -07:00
1 parent 5de35a1d77
commit 04e686c52f
1 file changed
+1 -1
+1 -1
View File
@@ -909,7 +909,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 = transfer->user_data;
int res;