Reject outright a libbladerf that's too old

This commit is contained in:
Oliver Jowett 2019-09-04 22:46:38 +08:00
parent 18d47fd5ff
commit 1d29f5e059

View file

@ -23,8 +23,12 @@
#include <libbladeRF.h>
#include <inttypes.h>
#if !defined(LIBBLADERF_API_VERSION) || (LIBBLADERF_API_VERSION < 0x01060100)
#error This libbladeRF is too old, upgrade or disable bladerf support
#endif
// Polyfill for the older bladerf API
#if !defined(LIBBLADERF_API_VERSION) || (LIBBLADERF_API_VERSION < 0x02000000)
#if LIBBLADERF_API_VERSION < 0x02000000
typedef unsigned int bladerf_frequency;
#endif