From: Amos Jeffries Date: Fri, 28 Jan 2011 08:16:17 +0000 (+1300) Subject: Windows: define OS wrapper for MinGW environment support X-Git-Tag: take03^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d63494d2c8c57065efb6e95ac3e52f67b2e2b26;p=thirdparty%2Fsquid.git Windows: define OS wrapper for MinGW environment support --- diff --git a/compat/osdetect.h b/compat/osdetect.h index 26159829e4..258e082ac3 100644 --- a/compat/osdetect.h +++ b/compat/osdetect.h @@ -65,10 +65,14 @@ #elif defined(__DragonFly__) #define _SQUID_DRAGONFLY_ 1 -#elif defined(__CYGWIN32__) || defined(__CYGWIN__) +#elif defined(__CYGWIN32__) || defined(__CYGWIN__) #define _SQUID_CYGWIN_ 1 #define _SQUID_WINDOWS_ 1 +#elif defined(__MINGW32__) || defined(__MINGW__) +#define _SQUID_MINGW_ 1 +#define _SQUID_WINDOWS_ 1 + #elif defined(WIN32) || defined(WINNT) || defined(__WIN32__) || defined(__WIN32) /* We are using _SQUID_MSWIN_ define in cf.data.pre, so it must be defined to 1 to avoid the build failure of cfgen.