Use LIBUSB_CALL for hidapi's read_callback function
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Wed, 11 Mar 2020 14:17:19 -0400
changeset 136221daea6276f1b
parent 13621 958bd91f4f4c
child 13623 77d56667ebe0
Use LIBUSB_CALL for hidapi's read_callback function
src/hidapi/libusb/hid.c
     1.1 --- a/src/hidapi/libusb/hid.c	Fri Mar 13 19:08:45 2020 -0700
     1.2 +++ b/src/hidapi/libusb/hid.c	Wed Mar 11 14:17:19 2020 -0400
     1.3 @@ -783,7 +783,7 @@
     1.4  	return handle;
     1.5  }
     1.6  
     1.7 -static void read_callback(struct libusb_transfer *transfer)
     1.8 +static void LIBUSB_CALL read_callback(struct libusb_transfer *transfer)
     1.9  {
    1.10  	hid_device *dev = (hid_device *)transfer->user_data;
    1.11  	int res;