On 21/09/2010 09:29, Xiaofan Chen wrote:
On Tue, Sep 21, 2010 at 4:11 PM, Spencer Oliver<[email protected]>  wrote:
If mingw-64 are already using usb.h then that creates a bit of a problem
for any interface that is expecting libusb usb.h.

The only safe solution would be to use a subdirectory for libusb/libftdi
if mingw64 will not change their layout.


Even that may not be safe enough. For example libftdi's ftdi.h include
<usb.h>    and the compiler may use MinGW-w64's usb.h instead of
libusb-win32 usb.h.


I was thinking of putting the ftdi.h in the libusb directory as well.


I see. This should work. Maybe an extra option to set the directory
for libusb/libusb-win32's usb.h and libftdi's ftdi.h for the configure
scripts will help.


configure ... CPPFLAGS="-Ipath_to_libusb_headers" should work just fine.

Cheers
Spen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to