]> git.gag.com Git - fw/stlink/commitdiff
[ fix ] missing LIBUSB_CALL definition
authorFabien Le Mentec <texane@gmail.com>
Thu, 17 May 2012 06:39:16 +0000 (01:39 -0500)
committerFabien Le Mentec <texane@gmail.com>
Thu, 17 May 2012 06:39:16 +0000 (01:39 -0500)
src/stlink-usb.c

index 20e5cd22e7bcc63b56c98024165e2396369216c0..72ffda17787439dfec7611b0efc7f0cf7aa62227 100644 (file)
@@ -58,6 +58,10 @@ struct trans_ctx {
     volatile unsigned long flags;
 };
 
+#ifndef LIBUSB_CALL
+# define LIBUSB_CALL
+#endif
+
 static void LIBUSB_CALL on_trans_done(struct libusb_transfer * trans) {
     struct trans_ctx * const ctx = trans->user_data;