Windows: Fix MinGW build
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 3 Mar 2016 08:20:33 +0000 (00:20 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 3 Mar 2016 08:20:33 +0000 (00:20 -0800)
The integration of UsbDk moved the windows_error_str() function to
windows_nt_common.c, but the definition of FACILITY_SETUPAPI (which
MinGW headers do not provide) did not follow the move.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_nt_common.h
libusb/os/windows_winusb.h
libusb/version_nano.h

index ceb547b..9749e00 100644 (file)
 
 #pragma once
 
+// Missing from MinGW
+#if !defined(FACILITY_SETUPAPI)
+#define FACILITY_SETUPAPI      15
+#endif
+
 typedef struct USB_CONFIGURATION_DESCRIPTOR {
   UCHAR  bLength;
   UCHAR  bDescriptorType;
index d544a7f..303f4a6 100644 (file)
 #define SPDRP_INSTALL_STATE    34
 #endif
 
-// Missing from MinGW
-#if !defined(FACILITY_SETUPAPI)
-#define FACILITY_SETUPAPI      15
-#endif
-
 #define MAX_CTRL_BUFFER_LENGTH 4096
 #define MAX_USB_DEVICES                256
 #define MAX_USB_STRING_LENGTH  128
index 340ae63..0336bef 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11087
+#define LIBUSB_NANO 11088