From 18dda4a05b16febcda7b649e6ee79cbc2a6d6c9d Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 27 Feb 2014 15:45:33 +0000 Subject: [PATCH] MINGW fix git-svn-id: svn://ultimatepp.org/upp/trunk@6963 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/config.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/uppsrc/Core/config.h b/uppsrc/Core/config.h index 7d358b02f..1b7343918 100644 --- a/uppsrc/Core/config.h +++ b/uppsrc/Core/config.h @@ -8,9 +8,13 @@ #define COMPILER_GCC 1 - #if __WIN32 - #define COMPILER_MINGW - #define PLATFORM_WIN32 + #if defined(__WIN32) || defined(_WIN32) || defined(WIN32) + #define COMPILER_MINGW 1 + #define PLATFORM_WIN32 1 + #undef WINVER + #undef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 + #define WINVER WindowsXP #endif #if __unix || __unix__ || __APPLE__