Skip to content

Commit

Permalink
Force _WIN32_WINNT variable (#770)
Browse files Browse the repository at this point in the history
to avoid instant crashes on older Windows platforms.
  • Loading branch information
Gazyi authored Oct 1, 2024
1 parent 6737a34 commit 71349f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ include_directories(primedev/thirdparty)

# Targets
add_subdirectory(primedev)
# Forces Minizip to not use functions that are not available in Win 7 libraries.
if(WIN32)
target_compile_definitions(minizip PUBLIC -D_WIN32_WINNT=0x0601)
endif()

0 comments on commit 71349f0

Please sign in to comment.