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 authored and Kojin committed 2021-09-16 17:31:45 -04:00
1 parent 8841df96c0
commit f343614640
8 files changed
+10 -9

No files matched your search

+1 -1
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>
-1
View File
@@ -19,7 +19,6 @@
#include "IopCommon.h"
#if defined(_WIN32)
#define _WIN32_WINNT 0x0600
#define NOMINMAX
#include <windows.h>
#endif
+2
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
-2
View File
@@ -14,8 +14,6 @@
*/
#include "PrecompiledHeader.h"
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#ifdef _WIN32
//#include <winsock2.h>
-2
View File
@@ -15,8 +15,6 @@
#include "PrecompiledHeader.h"
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#ifdef _WIN32
//#include <winsock2.h>
#include <Winioctl.h>
-2
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>
-1
View File
@@ -16,7 +16,6 @@
#include "PrecompiledHeader.h"
#include "SPU2/Global.h"
#define _WIN32_WINNT 0x0600
#include <windows.h>
#include <mmsystem.h>
+7
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()