mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-10-08 19:53:07 +00:00
libusb-win32 recently changed the name of their header file from usb.h
to lusb0_usb.h (for whatever reason). Autoprobe for the filename during configure, and include whatever is appropriate. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1043 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -42,7 +42,13 @@
|
||||
#ifdef HAVE_LIBFTDI
|
||||
|
||||
#include <ftdi.h>
|
||||
#include <usb.h>
|
||||
#if defined(HAVE_USB_H)
|
||||
# include <usb.h>
|
||||
#elif defined(HAVE_LUSB0_USB_H)
|
||||
# include <lusb0_usb.h>
|
||||
#else
|
||||
# error "libusb needs either <usb.h> or <lusb0_usb.h>"
|
||||
#endif
|
||||
|
||||
/* This is for running the code without having a FTDI-device.
|
||||
* The generated code is useless! For debugging purposes only.
|
||||
|
Reference in New Issue
Block a user