forked from sdr/gr-osmosdr
hackrf: use #ifdef just like in hackrf_sink_c
This commit is contained in:
parent
2bcd86e55e
commit
f33f30815a
|
@ -401,7 +401,7 @@ std::vector<std::string> hackrf_source_c::get_devices()
|
||||||
_usage++;
|
_usage++;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBHACKRF_HAVE_DEVICE_LIST
|
#ifdef LIBHACKRF_HAVE_DEVICE_LIST
|
||||||
hackrf_device_list_t *list = hackrf_device_list();
|
hackrf_device_list_t *list = hackrf_device_list();
|
||||||
|
|
||||||
for (unsigned int i = 0; i < list->devicecount; i++) {
|
for (unsigned int i = 0; i < list->devicecount; i++) {
|
||||||
|
|
Loading…
Reference in New Issue