kopia lustrzana https://github.com/Hamlib/Hamlib
Fix rigtestlibusb test_wrapped_device for libusb-1.0.22 or less
rodzic
e49693af08
commit
63240f1671
|
@ -312,13 +312,6 @@ static void print_device(libusb_device *dev, libusb_device_handle *handle)
|
|||
|
||||
#if defined(ANDROID) && defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION < 0x01000107)
|
||||
#warning LIBUSB-1.0.23 or greater is required for Android devices
|
||||
static int test_wrapped_device(const char *device_name)
|
||||
{
|
||||
(void)device_name;
|
||||
printf("Testing wrapped devices is not supported on your platform\n");
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -350,6 +343,13 @@ static int test_wrapped_device(const char *device_name)
|
|||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
static int test_wrapped_device(const char *device_name)
|
||||
{
|
||||
(void)device_name;
|
||||
printf("Testing wrapped devices is not supported on your platform\n");
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
|
Ładowanie…
Reference in New Issue