Target Windows 8 via project settings

It's needed for the next commit, as thanks to wxWidgets
anything using the precompiled header would default to 0x0600 (Vista)
instead of 0x0602 (Win8).

Now-redundant WINNT definitions resulting in macro redefinition
warnings have been removed.
This commit is contained in:
Silent 2021-07-07 21:13:11 +02:00 committed by Kojin
parent 8841df96c0
commit f343614640
8 changed files with 10 additions and 9 deletions

View File

@ -11,7 +11,7 @@
<ClCompile>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)\3rdparty\wxWidgets3.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>__WIN32__;WIN32;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>__WIN32__;WIN32;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;WINVER=0x0603;_WIN32_WINNT=0x0603;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StructMemberAlignment>16Bytes</StructMemberAlignment>
<FunctionLevelLinking>true</FunctionLevelLinking>
<RuntimeTypeInfo>false</RuntimeTypeInfo>

View File

@ -19,7 +19,6 @@
#include "IopCommon.h"
#if defined(_WIN32)
#define _WIN32_WINNT 0x0600
#define NOMINMAX
#include <windows.h>
#endif

View File

@ -85,6 +85,8 @@ if(WIN32)
)
target_compile_definitions(PCSX2 PRIVATE
_M_SSE=0x401 # TODO: Multiple ISA
WINVER=0x0603
_WIN32_WINNT=0x0603
WIN32_LEAN_AND_MEAN
LZMA_API_STATIC
BUILD_DX=1

View File

@ -14,8 +14,6 @@
*/
#include "PrecompiledHeader.h"
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#ifdef _WIN32
//#include <winsock2.h>

View File

@ -15,8 +15,6 @@
#include "PrecompiledHeader.h"
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#ifdef _WIN32
//#include <winsock2.h>
#include <Winioctl.h>

View File

@ -17,8 +17,6 @@
#include "SPU2/Global.h"
#include "Dialogs.h"
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0602
#include <xaudio2.h>
#include <cguid.h>
#include <atlcomcli.h>

View File

@ -16,7 +16,6 @@
#include "PrecompiledHeader.h"
#include "SPU2/Global.h"
#define _WIN32_WINNT 0x0600
#include <windows.h>
#include <mmsystem.h>

View File

@ -23,4 +23,11 @@ foreach(isa "sse4" "avx" "avx2")
target_compile_options(swizzle_test_${isa} PRIVATE ${compile_options_${isa}})
target_compile_definitions(swizzle_test_${isa} PRIVATE ${definitions_${isa}})
if(WIN32)
target_compile_definitions(swizzle_test_${isa} PRIVATE
WINVER=0x0603
_WIN32_WINNT=0x0603
WIN32_LEAN_AND_MEAN
)
endif()
endforeach()