From cab3467df17b416be554c9c24ceadfc5e4c24481 Mon Sep 17 00:00:00 2001 From: joris <joris.dauphin@gmail.com> Date: Thu, 25 Jul 2013 15:00:59 +0200 Subject: [PATCH] Fix compilation for mingw --- src/win32/attachconsole.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win32/attachconsole.cpp b/src/win32/attachconsole.cpp index 8d8593fa8..1c12e3591 100644 --- a/src/win32/attachconsole.cpp +++ b/src/win32/attachconsole.cpp @@ -28,6 +28,10 @@ #include <iostream> #endif +#ifndef _WIN32_WINNT_WIN2K +#define _WIN32_WINNT_WIN2K 0x0500 +#endif + static int fixmode = 0; static HINSTANCE lib_kernel32 = NULL;