[vlc-commits] [Git][videolan/vlc][master] contrib: aom: do not force _WIN32_WINNT
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jul 23 18:44:44 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
7ccb311e by Steve Lhomme at 2026-07-23T18:19:07+00:00
contrib: aom: do not force _WIN32_WINNT
Either it's set in the environment or the user wants to use the toolchain default.
If a minimum version is required it should be checked there, not in the code when
we force this value.
- - - - -
2 changed files:
- + contrib/src/aom/0001-Do-not-force-_WIN32_WINNT.patch
- contrib/src/aom/rules.mak
Changes:
=====================================
contrib/src/aom/0001-Do-not-force-_WIN32_WINNT.patch
=====================================
@@ -0,0 +1,30 @@
+From 40d944066622f2e7dc07e475caba38efbef311a1 Mon Sep 17 00:00:00 2001
+From: Steve Lhomme <robux4 at videolan.org>
+Date: Mon, 20 Jul 2026 10:36:22 +0200
+Subject: [PATCH] Do not force _WIN32_WINNT
+
+Either it's set in the environment or the user wants to use the toolchain default.
+If a minimum version is required it should be checked there, not in the code when
+we force this value.
+
+Change-Id: I47400eadc5c2e0dcee874e932a99e6c987ddf5c9
+---
+ cmake/aom_configure.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/aom_configure.cmake b/cmake/aom_configure.cmake
+index d5cd4db55b..39d77a4aae 100644
+--- a/cmake/aom_configure.cmake
++++ b/cmake/aom_configure.cmake
+@@ -244,7 +244,7 @@ endif()
+ if(AOM_TARGET_SYSTEM STREQUAL "Windows")
+ # The default _WIN32_WINNT value in MinGW is 0x0502 (Windows XP with SP2). Set
+ # it to 0x0601 (Windows 7).
+- add_compiler_flag_if_supported("-D_WIN32_WINNT=0x0601")
++ # add_compiler_flag_if_supported("-D_WIN32_WINNT=0x0601")
+ # Quiet warnings related to fopen, printf, etc.
+ add_compiler_flag_if_supported("-D_CRT_SECURE_NO_WARNINGS")
+ endif()
+--
+2.52.0.windows.1
+
=====================================
contrib/src/aom/rules.mak
=====================================
@@ -14,6 +14,7 @@ $(TARBALLS)/libaom-$(AOM_VERSION).tar.gz:
aom: libaom-$(AOM_VERSION).tar.gz .sum-aom
$(UNPACK)
+ $(APPLY) $(SRC)/aom/0001-Do-not-force-_WIN32_WINNT.patch
$(MOVE)
DEPS_aom =
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7ccb311ea8ac18650b40d9334ff1fe609ebe8c9e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7ccb311ea8ac18650b40d9334ff1fe609ebe8c9e
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list