Skip to content

Commit

Permalink
Use LIBUSB_CALL for hidapi's read_callback function
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Mar 11, 2020
1 parent 2be75c6 commit 133b475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hidapi/libusb/hid.c
Expand Up @@ -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;
Expand Down

0 comments on commit 133b475

Please sign in to comment.