From 7a780896a1fc19df8ace074f387ae5cd11a4f58b Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Wed, 19 Mar 2025 21:58:37 -0600 Subject: [PATCH] win32: Fix MSVC build with dwrite disabled We now require at least Windows Vista. When dwrite is disabled, declare WINVER accordingly so we get the defines we no longer carry ourselves. The default dwrite-enabled path already has a new-enough WINVER. Fixes: d0ee67a14285 ("Win32: Remove unused code and defines for old toolchains") --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ee2a4e70b..6dafaad6e 100644 --- a/meson.build +++ b/meson.build @@ -539,7 +539,7 @@ if host_machine.system() == 'windows' add_project_arguments('-DWINVER=_WIN32_WINNT_WIN10', '-D_WIN32_WINNT=_WIN32_WINNT_WIN10', '-DNTDDI_VERSION=NTDDI_WIN10_RS3', language: ['c', 'cpp']) else - add_project_arguments('-DWINVER=_WIN32_WINNT_WIN2K', '-D_WIN32_WINNT=_WIN32_WINNT_WIN2K', language: ['c', 'cpp']) + add_project_arguments('-DWINVER=_WIN32_WINNT_VISTA', '-D_WIN32_WINNT=_WIN32_WINNT_VISTA', language: ['c', 'cpp']) endif endif