summaryrefslogtreecommitdiffstats
path: root/src/sdk/installerbase_p.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-10-14 14:35:37 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-10-15 12:38:35 +0200
commitbd589a9a297fc16d1370c9de24d04afe9c5254e9 (patch)
tree96c29bdc57f12510ab45a1e129bdeddf36efc5e5 /src/sdk/installerbase_p.cpp
parent160fe9fefda4078538e4719762f76f37121de1d3 (diff)
Compile on mingw.
Change-Id: I2a9a85e88dffa62af57c8502533a0c131ecf1b8e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/sdk/installerbase_p.cpp')
-rw-r--r--src/sdk/installerbase_p.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sdk/installerbase_p.cpp b/src/sdk/installerbase_p.cpp
index d9ac4f9b2..4fcbe7b6e 100644
--- a/src/sdk/installerbase_p.cpp
+++ b/src/sdk/installerbase_p.cpp
@@ -63,14 +63,8 @@
#include <iostream>
#ifdef Q_OS_WIN
-# ifdef Q_CC_MINGW
-# ifndef _WIN32_WINNT
-# define _WIN32_WINNT 0x0501
-# endif
-#endif
-
-# include <wincon.h>
# include <windows.h>
+# include <wincon.h>
# ifndef ENABLE_INSERT_MODE
# define ENABLE_INSERT_MODE 0x0020
@@ -142,11 +136,12 @@ public:
m_oldCerr = std::cerr.rdbuf();
m_newCerr.open("CONOUT$");
std::cerr.rdbuf(m_newCerr.rdbuf());
-
+# ifndef Q_CC_MINGW
HMENU systemMenu = GetSystemMenu(GetConsoleWindow(), FALSE);
if (systemMenu != NULL)
RemoveMenu(systemMenu, SC_CLOSE, MF_BYCOMMAND);
DrawMenuBar(GetConsoleWindow());
+# endif
#endif
}
~MyApplicationConsole()