Always define winversion

This commit is contained in:
obligaron authored and Anders Jenbo committed 2023-12-16 00:09:10 +01:00
1 parent 8cb167ac98
commit 4c7f60eaea
2 files changed
+4 -4

No files matched your search

+2 -4
View File
@@ -1,7 +1,3 @@
if(WIN32)
include(platforms/windows)
endif()
if(HAIKU)
include(platforms/haiku)
endif()
@@ -35,6 +31,8 @@ elseif(TARGET_PLATFORM STREQUAL "miyoo_mini")
include(platforms/miyoo_mini)
elseif(TARGET_PLATORM STREQUAL "windows9x")
include(platforms/windows9x)
elseif(WIN32)
include(platforms/windows)
endif()
if(NINTENDO_SWITCH)
+2
View File
@@ -10,6 +10,8 @@ list(APPEND DEVILUTIONX_PLATFORM_LINK_LIBRARIES
wininet
)
add_definitions(-DWINVER=0x0601 -D_WIN32_WINDOWS=0x0601 -D_WIN32_WINNT=0x0601)
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_OPTIONS "/W3" "/Zc:__cplusplus" "/utf-8")
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS)