From 80d603582862ea0332dc301352655e8c086776dd Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sun, 13 May 2012 22:57:27 +0100 Subject: [PATCH] use sys/time.h for mingw compatiblity, use LIBUSB_CALL modifier for callback --- src/stlink-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2