forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x0400
|
||||
#endif
|
||||
|
||||
#include "registerpostmortemaction.h"
|
||||
|
||||
#include <registryaccess.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user