Skip to content

Commit 71349f0

Browse files
authored
Force _WIN32_WINNT variable (#770)
to avoid instant crashes on older Windows platforms.
1 parent 6737a34 commit 71349f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ include_directories(primedev/thirdparty)
5050

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

0 commit comments

Comments
 (0)