summaryrefslogtreecommitdiff
path: root/libusb/libusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r--libusb/libusb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index 555ae63..6a455f8 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -36,7 +36,7 @@
* libusb_config_descriptor has an 'interface' member
* As this can be problematic if you include windows.h after libusb.h
* in your sources, we force windows.h to be included first. */
-#if defined(OS_WINDOWS) && !defined(_WINDOWS_)
+#if (defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__)) && !defined(_WINDOWS_)
#include <windows.h>
#endif