From cac87cce34d4b45da770f89d19be01ffaa68137d Mon Sep 17 00:00:00 2001 From: deve Date: Wed, 26 Nov 2014 06:46:03 +0100 Subject: [PATCH] Fixed mingw compilation. I don't know how it worked previously because MEMORYSTATUSEX was there rather longer time and it needs this definition. --- src/config/hardware_stats.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/hardware_stats.cpp b/src/config/hardware_stats.cpp index 6ca8d27d8..ace905536 100644 --- a/src/config/hardware_stats.cpp +++ b/src/config/hardware_stats.cpp @@ -16,6 +16,11 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#ifdef __MINGW32__ +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0500 +#endif + #include "config/hardware_stats.hpp" #include "config/user_config.hpp"