diff options
author | Pete Batard <pbatard@gmail.com> | 2010-04-13 23:29:27 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-04-13 23:29:27 +0100 |
commit | 26a0c962b13088896a91052e78a23303aa085260 (patch) | |
tree | 2d6eb25145049a590586c0edbf1e15aff93eff49 /libusb/libusb.h | |
parent | 88b71cdf23e39e4a880c0924a0d8cfab01ac8040 (diff) | |
download | libusb-26a0c962b13088896a91052e78a23303aa085260.tar.gz |
fixed the use of internal OS_WINDOWS in general file libusb.h
OS_WINDOWS is only defined in the context of compiling libusb
switched to using the explicit MinGW/cygwin and MS compiler defines
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r-- | libusb/libusb.h | 2 |
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 |