Make libusb optional
commit85d506b037083ddbc561b42bb5be1bed2fb230b6
authorMarc Schink <jaylink-dev@marcschink.de>
Mon, 2 Jan 2017 14:46:11 +0000 (2 15:46 +0100)
committerMarc Schink <jaylink-dev@marcschink.de>
Wed, 12 Jul 2017 12:29:47 +0000 (12 14:29 +0200)
treeb2a45b61a7186829af992a9bacb66a5604d4aad1
parent0643b9ddde59a50074256d5c41988a4e044d19ac
Make libusb optional

Foolishly, 'interface' is a reserved keyword on Windows according to
MSDN:

https://msdn.microsoft.com/en-us/library/2kb28261.aspx

Rename all 'interface' identifiers in the source code to avoid possible
conflicts. This is necessary because if libusb is not available, the
keyword is not undefined (#undef) by libusb.h any longer.

Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
configure.ac
libjaylink.pc.in
libjaylink/Makefile.am
libjaylink/core.c
libjaylink/device.c
libjaylink/discovery.c
libjaylink/discovery_tcp.c
libjaylink/discovery_usb.c
libjaylink/libjaylink-internal.h
libjaylink/transport.c