fix constant not in range of enumerated type fix "Integer constant not in range of enumerated type 'enum libusb_transfer_status'" LIBUSB_ERROR_NO_DEVICE doesn't exist on enum libusb_transfer_status
diff --git a/libusb/sync.c b/libusb/sync.c index 70942ac..863fe5c 100644 --- a/libusb/sync.c +++ b/libusb/sync.c
@@ -62,7 +62,7 @@ } if (NULL == transfer->dev_handle) { /* transfer completion after libusb_close() */ - transfer->status = LIBUSB_ERROR_NO_DEVICE; + transfer->status = LIBUSB_TRANSFER_NO_DEVICE; *completed = 1; } }
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 695aeea..dfa2fc9 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h
@@ -1 +1 @@ -#define LIBUSB_NANO 11398 +#define LIBUSB_NANO 11399