Extend LIBUSB_API_VERSION check

The define exists since 1.0.13, so to compensate for older also
check if the variable is defined.
This commit is contained in:
Armin Novak 2020-01-10 10:52:23 +01:00
parent 08e7a26979
commit d0929cbf2f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
#include "libusb_udevice.h"
#if LIBUSB_API_VERSION < 0x01000102
#if !defined(LIBUSB_API_VERSION) || (LIBUSB_API_VERSION < 0x01000102)
#define LIBUSB_HOTPLUG_NO_FLAGS 0
#endif