libusb: use LIBUSB_CALL for the read_callback function (#569)

This commit is contained in:
Sam Lantinga
2023-06-06 15:05:42 -07:00
committed by GitHub
parent 5eb5544374
commit fea2357cc5

View File

@@ -835,7 +835,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;