summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2014-01-08 19:56:12 +0000
committerPete Batard <pete@akeo.ie>2014-01-08 19:56:12 +0000
commit85e118aca6425108a408c3ce8b55a8d44fcef73c (patch)
treee75cdf9547320c86d0b04d36d9918e8d1ec7655b
parent0500232303fe706dbe538290a49869f1dadf90af (diff)
downloadlibusb-85e118aca6425108a408c3ce8b55a8d44fcef73c.tar.gz
Windows: Fix a MinGW compilation issue
* Some MinGW platforms may not have FACILITY_SETUPAPI defined * Issue introduced with 8b46e1c088167eb86b1712765896e2f17d70d148
-rw-r--r--libusb/os/windows_usb.h5
-rw-r--r--libusb/version_nano.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h
index 5d67a56..14ee422 100644
--- a/libusb/os/windows_usb.h
+++ b/libusb/os/windows_usb.h
@@ -40,6 +40,11 @@
#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
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 4dc856c..69887e6 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10860
+#define LIBUSB_NANO 10861