Libusb is used internally but (normally) not needed by an application
directly, so don't include <libusb.h> from the exposed interface header.
Signed-off-by: Anders Larsen <al@alarsen.net>
This exception does not invalidate any other reasons why a work based
on this file might be covered by the GNU General Public License.
*/
+#include <libusb.h>
#include "ftdi.hpp"
#include "ftdi_i.h"
#include "ftdi.h"
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-libusb_libs=@LIBUSB_1_0_LIBS@
-libusb_cflags=@LIBUSB_1_0_CFLAGS@
Name: libftdi1
Description: Library to program and control the FTDI USB controller
Requires: libusb-1.0
Version: @VERSION@
-Libs: -L${libdir} -lftdi1 ${libusb_libs}
-Cflags: -I${includedir} ${libusb_cflags}
+Libs: -L${libdir} -lftdi1
+Cflags: -I${includedir}
#ifndef __libftdi_h__
#define __libftdi_h__
-#include <libusb.h>
+#include <stdint.h>
+#include <sys/time.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 };
#include <stdlib.h>
#include <stdio.h>
+#include <libusb.h>
#include "ftdi.h"