From 57b0c6d0c47d6495392161ddd9030b2a2d5c9e6c Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 15 Jan 2016 15:44:13 +0100 Subject: libusb-sniff: avoid usb.h include usb.h is only required for the definition of usb_dev_handle, which is never used, so it can be defined as anonymous struct instead. This has the advantage, that libusb is not required on the system compiling the library. --- src/libusb-sniff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libusb-sniff.c') diff --git a/src/libusb-sniff.c b/src/libusb-sniff.c index eeb6ec6..a901556 100644 --- a/src/libusb-sniff.c +++ b/src/libusb-sniff.c @@ -25,7 +25,9 @@ #include #include #include -#include + +struct usb_dev_handle; +typedef struct usb_dev_handle usb_dev_handle; static char to_ascii(char c) { -- cgit v1.2.3