From: Dave Murphy Date: Sun, 13 May 2012 21:57:27 +0000 (+0100) Subject: use sys/time.h for mingw compatiblity, use LIBUSB_CALL modifier for callback X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=80d603582862ea0332dc301352655e8c086776dd;p=fw%2Fstlink use sys/time.h for mingw compatiblity, use LIBUSB_CALL modifier for callback --- diff --git a/src/stlink-usb.c b/src/stlink-usb.c index d945f66..5807227 100644 --- a/src/stlink-usb.c +++ b/src/stlink-usb.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include #include @@ -57,7 +57,7 @@ struct trans_ctx { volatile unsigned long flags; }; -static void on_trans_done(struct libusb_transfer * trans) { +static void LIBUSB_CALL on_trans_done(struct libusb_transfer * trans) { struct trans_ctx * const ctx = trans->user_data; if (trans->status != LIBUSB_TRANSFER_COMPLETED)