0x601 not works, use _WIN32_WINNT_WIN7 instead

This commit is contained in:
LIU Xiao 2024-07-05 17:42:17 +08:00
parent 12c5612774
commit ead607e013
2 changed files with 2 additions and 2 deletions

View file

@ -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)),)

View file

@ -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