hackrf: use #ifdef just like in hackrf_sink_c

This commit is contained in:
Dimitri Stolnikov 2015-06-01 22:24:32 +02:00
parent 2bcd86e55e
commit f33f30815a
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ std::vector<std::string> hackrf_source_c::get_devices()
_usage++;
}
#if LIBHACKRF_HAVE_DEVICE_LIST
#ifdef LIBHACKRF_HAVE_DEVICE_LIST
hackrf_device_list_t *list = hackrf_device_list();
for (unsigned int i = 0; i < list->devicecount; i++) {