Jelajahi Sumber

hidapi/libusb: use LIBUSB_CALL for the read_callback function

Signed-off-by: Sam Lantinga <slouken@libsdl.org>
Sam Lantinga 2 tahun lalu
induk
melakukan
04e686c52f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/hidapi/libusb/hid.c

+ 1 - 1
src/hidapi/libusb/hid.c

@@ -909,7 +909,7 @@ hid_device * hid_open(unsigned short vendor_id, unsigned short product_id, const
 	return handle;
 	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;
 	hid_device *dev = transfer->user_data;
 	int res;
 	int res;