]> git.sur5r.net Git - openocd/commitdiff
libusb: Fix build issues under cygwin/mingw
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 28 Nov 2011 14:56:13 +0000 (14:56 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 2 Dec 2011 12:26:33 +0000 (12:26 +0000)
This fixes issues with the folliwing patch under cygwin/mingw builds.
http://openocd.zylin.com/236

Change-Id: I7dd0b2d09cc64568bc99b16aa32e791a8273c5db
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/240
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Mauro Gamba <maurillo71@gmail.com>
src/jtag/drivers/libusb0_common.h
src/jtag/drivers/libusb1_common.h

index 9cf235e37933812e5db63b1c57bcdbfa715d5162..985d084333ef6ff4196abcd40894bfdc1ef99170 100644 (file)
@@ -36,7 +36,7 @@
 #define jtag_libusb_reset_device(dev)          usb_reset(dev)
 #define jtag_libusb_get_device(devh)           usb_device(devh)
 
-inline int jtag_libusb_claim_interface(jtag_libusb_device_handle *devh,
+static inline int jtag_libusb_claim_interface(jtag_libusb_device_handle *devh,
                                       int iface)
 {
        return usb_claim_interface(devh, iface);
index 89e8c1ec5a67b418975f1bb9866b8c4385490ecf..2cff3f09a9ba99f9b5d80b3921edbcb1814e2a6c 100644 (file)
@@ -36,7 +36,7 @@
 #define jtag_libusb_reset_device(dev)          libusb_reset_device(dev)
 #define jtag_libusb_get_device(devh)           libusb_get_device(devh)
 
-inline int jtag_libusb_claim_interface(jtag_libusb_device_handle *devh,
+static inline int jtag_libusb_claim_interface(jtag_libusb_device_handle *devh,
                                       int iface)
 {
        return libusb_claim_interface(devh, iface);