Core/Misc: Added windows version checks during startup to avoid confusion about crashes when running on unsupported OS

This commit is contained in:
Shauren authored and Ovahlord committed 2023-12-14 01:06:34 +01:00
1 parent d5cb122e3a
commit d02827d228
12 files changed
+63 -6

No files matched your search

+5 -1
View File
@@ -1,4 +1,8 @@
add_definitions(-D_WIN32_WINNT=0x0601)
add_definitions(-D_WIN32_WINNT=0x0A00) # Windows 10
add_definitions(-DNTDDI_VERSION=0x0A000007) # 19H1 (1903)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-DNOMINMAX)
add_definitions(-DTRINITY_REQUIRED_WINDOWS_BUILD=18362)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
include(${CMAKE_SOURCE_DIR}/cmake/compiler/msvc/settings.cmake)