From 6c25049019a4c83713621e91f6f175b03f32c369 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 23 Oct 2019 09:26:31 +0200 Subject: 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 Reviewed-by: Alessandro Portale --- src/plugins/debugger/procinterrupt.cpp | 4 ---- src/plugins/debugger/registerpostmortemaction.cpp | 4 ---- src/plugins/debugger/shared/hostutils.cpp | 4 ---- 3 files changed, 12 deletions(-) (limited to 'src/plugins/debugger') 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 #include 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 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 - -// Enable Win API of XP SP1 and later -#undef _WIN32_WINNT -#define _WIN32_WINNT 0x0502 #include #include #include -- cgit v1.2.1