summaryrefslogtreecommitdiff
path: root/test_appl/df10ch_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_appl/df10ch_test.c')
-rw-r--r--test_appl/df10ch_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test_appl/df10ch_test.c b/test_appl/df10ch_test.c
index ee879a0..7a7ba2c 100644
--- a/test_appl/df10ch_test.c
+++ b/test_appl/df10ch_test.c
@@ -33,10 +33,11 @@
#else
#include <unistd.h>
#include <sys/time.h>
+#endif
+
#ifndef LIBUSB_CALL
#define LIBUSB_CALL
#endif
-#endif
#include "../df10ch_usb_proto.h"
@@ -72,7 +73,7 @@ struct df10ch_output_driver_s {
int transfer_err_cnt; // Number of transfer errors
};
-#ifndef WIN32
+#ifndef HAVE_LIBUSB_STRERROR
static const char *libusb_strerror(int rc) {
switch (rc) {
case LIBUSB_SUCCESS: