Hi All, I've appended a patch that changes the include from libusb.h to libusb-1.0/libusb.h so that one hasn't to manually append -I/usr/include/libusb-1.0 to cmdline or makefile for projects that only use libftdi. Any thoughts?
Cheers, Matthias -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
>From d24ea317ec8c2d88e90e8712a4bd99213a8038b0 Mon Sep 17 00:00:00 2001 From: Matthias Janke <[email protected]> Date: Sun, 13 Jan 2013 03:25:09 +0100 Subject: [PATCH 1/2] include libusb 1.0 headers explicitly --- ftdi_eeprom/main.c | 2 +- src/ftdi.c | 2 +- src/ftdi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index 5e28034..4861a57 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -37,7 +37,7 @@ #include <string.h> #include <confuse.h> -#include <libusb.h> +#include <libusb-1.0/libusb.h> #include <ftdi.h> #include <ftdi_eeprom_version.h> diff --git a/src/ftdi.c b/src/ftdi.c index 92190a0..b5e155f 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -28,7 +28,7 @@ /** \addtogroup libftdi */ /* @{ */ -#include <libusb.h> +#include <libusb-1.0/libusb.h> #include <string.h> #include <errno.h> #include <stdio.h> diff --git a/src/ftdi.h b/src/ftdi.h index 0348eea..63f4a6d 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -17,7 +17,7 @@ #ifndef __libftdi_h__ #define __libftdi_h__ -#include <libusb.h> +#include <libusb-1.0/libusb.h> /** FTDI chip type */ enum ftdi_chip_type { TYPE_AM=0, TYPE_BM=1, TYPE_2232C=2, TYPE_R=3, TYPE_2232H=4, TYPE_4232H=5, TYPE_232H=6 }; -- 1.8.0.3
