hackrf: use #ifdef just like in hackrf_sink_c

soapy_support
Dimitri Stolnikov 8 years ago
parent 2bcd86e55e
commit f33f30815a
  1. 2
      lib/hackrf/hackrf_source_c.cc

@ -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++) {

Loading…
Cancel
Save