Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use LIBUSB_CALL for hidapi's read_callback function
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
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; |
|
|