From ead607e0139aad93025bf43524ab77a5fe107710 Mon Sep 17 00:00:00 2001 From: LIU Xiao Date: Fri, 5 Jul 2024 17:42:17 +0800 Subject: [PATCH] 0x601 not works, use _WIN32_WINNT_WIN7 instead --- Makefile | 2 +- ggml/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d4b9f6b90..065a8b124 100644 --- a/Makefile +++ b/Makefile @@ -454,7 +454,7 @@ ifneq '' '$(findstring mingw,$(shell $(CC) -dumpmachine))' MK_CFLAGS += -Xassembler -muse-unaligned-vector-move MK_CXXFLAGS += -Xassembler -muse-unaligned-vector-move - MK_CPPFLAGS += -D_WIN32_WINNT=0x601 + MK_CPPFLAGS += -D_WIN32_WINNT=_WIN32_WINNT_WIN7 -DWINVER=_WIN32_WINNT_WIN7 endif ifneq ($(filter aarch64%,$(UNAME_M)),) diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index 2ec267df8..49526b5e4 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -99,7 +99,7 @@ option(GGML_LSX "ggml: enable lsx" ON) option(GGML_SVE "ggml: enable SVE" OFF) if (WIN32) - set(GGML_WIN_VER "0x601" CACHE STRING "ggml: Windows Version") + set(GGML_WIN_VER "_WIN32_WINNT_WIN7" CACHE STRING "ggml: Windows Version") endif() # ggml core