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

View File

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