Fix polyfill for really old libbladerf-dev which doesn't provide an API version define

This commit is contained in:
Oliver Jowett 2019-09-04 22:14:56 +08:00
parent 4edb2e8e35
commit 18d47fd5ff

View file

@ -24,7 +24,7 @@
#include <inttypes.h> #include <inttypes.h>
// Polyfill for the older bladerf API // Polyfill for the older bladerf API
#if defined(LIBBLADERF_API_VERSION) && (LIBBLADERF_API_VERSION < 0x02000000) #if !defined(LIBBLADERF_API_VERSION) || (LIBBLADERF_API_VERSION < 0x02000000)
typedef unsigned int bladerf_frequency; typedef unsigned int bladerf_frequency;
#endif #endif