From: Fabien Le Mentec Date: Thu, 17 May 2012 06:39:16 +0000 (-0500) Subject: [ fix ] missing LIBUSB_CALL definition X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=fc85ba71f1bd1eeebbc36e69bc5d667c812784b3;p=fw%2Fstlink [ fix ] missing LIBUSB_CALL definition --- diff --git a/src/stlink-usb.c b/src/stlink-usb.c index 20e5cd2..72ffda1 100644 --- a/src/stlink-usb.c +++ b/src/stlink-usb.c @@ -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;