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:
@@ -15,6 +15,13 @@ list(APPEND DEFAULT_DEFINES
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND DEFAULT_DEFINES UNICODE _UNICODE _CRT_SECURE_NO_WARNINGS)
|
||||
|
||||
if (NOT BUILD_WITH_PCH)
|
||||
# Windows 8 0x0602
|
||||
list(APPEND DEFAULT_DEFINES
|
||||
WINVER=0x0602 _WIN32_WINNT=0x0602
|
||||
WIN32_LEAN_AND_MEAN)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user