Skip to content

Commit

Permalink
Always define winversion
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron authored and AJenbo committed Dec 15, 2023
1 parent 8cb167a commit 4c7f60e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMake/Platforms.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if(WIN32)
include(platforms/windows)
endif()

if(HAIKU)
include(platforms/haiku)
endif()
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions CMake/platforms/windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c7f60e

Please sign in to comment.