From 26a0c962b13088896a91052e78a23303aa085260 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 13 Apr 2010 23:29:27 +0100 Subject: 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 --- libusb/libusb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #endif -- cgit v1.2.1