Windows: Fix a MinGW compilation issue
authorPete Batard <pete@akeo.ie>
Wed, 8 Jan 2014 19:56:12 +0000 (19:56 +0000)
committerPete Batard <pete@akeo.ie>
Wed, 8 Jan 2014 19:56:12 +0000 (19:56 +0000)
* Some MinGW platforms may not have FACILITY_SETUPAPI defined
* Issue introduced with 8b46e1c088167eb86b1712765896e2f17d70d148

libusb/os/windows_usb.h
libusb/version_nano.h

index 5d67a56..14ee422 100644 (file)
 #define SPDRP_INSTALL_STATE    34
 #endif
 
+// Missing from MinGW
+#if !defined(FACILITY_SETUPAPI)
+#define FACILITY_SETUPAPI      15
+#endif
+
 #if defined(__CYGWIN__ )
 #define _stricmp stricmp
 // cygwin produces a warning unless these prototypes are defined
index 4dc856c..69887e6 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10860
+#define LIBUSB_NANO 10861