summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2019-10-23 09:26:31 +0200
committerCristian Adam <cristian.adam@qt.io>2019-10-31 11:45:20 +0000
commit6c25049019a4c83713621e91f6f175b03f32c369 (patch)
tree9eeb9d3eb2cd8910884c0fd28c6629e3f374eafe /src/plugins/debugger
parent479def8190b51025f7788da1dd8e6ec60df2e975 (diff)
downloadqt-creator-6c25049019a4c83713621e91f6f175b03f32c369.tar.gz
Windows: Remove explicit usage of _WIN32_WINNT and WINVER macros
The are set in a central place, in the precompile header file. Or as DEFAULT_DEFINES when the precompile header file is not used. Change-Id: Ie020f916b64eabcd5a8153f4be5474986f5afed5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/procinterrupt.cpp4
-rw-r--r--src/plugins/debugger/registerpostmortemaction.cpp4
-rw-r--r--src/plugins/debugger/shared/hostutils.cpp4
3 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/debugger/procinterrupt.cpp b/src/plugins/debugger/procinterrupt.cpp
index 085747ea60..b9605e653a 100644
--- a/src/plugins/debugger/procinterrupt.cpp
+++ b/src/plugins/debugger/procinterrupt.cpp
@@ -40,10 +40,6 @@ static inline QString msgCannotInterrupt(qint64 pid, const QString &why)
}
#if defined(Q_OS_WIN)
-
-#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0501 /* WinXP, needed for DebugBreakProcess() */
-
#include <utils/winutils.h>
#include <windows.h>
diff --git a/src/plugins/debugger/registerpostmortemaction.cpp b/src/plugins/debugger/registerpostmortemaction.cpp
index be37504a70..477b04b354 100644
--- a/src/plugins/debugger/registerpostmortemaction.cpp
+++ b/src/plugins/debugger/registerpostmortemaction.cpp
@@ -23,10 +23,6 @@
**
****************************************************************************/
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
-#endif
-
#include "registerpostmortemaction.h"
#include <registryaccess.h>
diff --git a/src/plugins/debugger/shared/hostutils.cpp b/src/plugins/debugger/shared/hostutils.cpp
index 5a65d5a6ea..326876fe5a 100644
--- a/src/plugins/debugger/shared/hostutils.cpp
+++ b/src/plugins/debugger/shared/hostutils.cpp
@@ -28,10 +28,6 @@
#ifdef Q_OS_WIN
#include <QTextStream>
-
-// Enable Win API of XP SP1 and later
-#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0502
#include <windows.h>
#include <utils/winutils.h>
#include <tlhelp32.h>