aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGazyi <Gazyi@users.noreply.github.com>2024-10-01 15:28:58 +0300
committerGitHub <noreply@github.com>2024-10-01 14:28:58 +0200
commit71349f05b69923dbf091d27f8e256bcc3022e859 (patch)
tree47dfcf758220148e836f796ecffd91a70507814b
parent6737a344c012c0f7fd19cd593949dd3dbe5a0cb7 (diff)
downloadNorthstarLauncher-1.28.3-rc1.tar.gz
NorthstarLauncher-1.28.3-rc1.zip
Force `_WIN32_WINNT` variable (#770)v1.28.3-rc1
to avoid instant crashes on older Windows platforms.
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a9646ae1..c9516e52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()