projects
/
platform
/
upstream
/
libusb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Windows: Fix a MinGW compilation issue
[platform/upstream/libusb.git]
/
libusb
/
os
/
windows_usb.h
diff --git
a/libusb/os/windows_usb.h
b/libusb/os/windows_usb.h
index
5d67a56
..
14ee422
100644
(file)
--- 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