From fc85ba71f1bd1eeebbc36e69bc5d667c812784b3 Mon Sep 17 00:00:00 2001 From: Fabien Le Mentec Date: Thu, 17 May 2012 01:39:16 -0500 Subject: [PATCH] [ fix ] missing LIBUSB_CALL definition --- src/stlink-usb.c | 4 ++++ 1 file changed, 4 insertions(+) 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;