This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch win7-floor-trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit f74c7b08f2b4db7a7456d3fa39a106023a040b1c Author: Peter <[email protected]> AuthorDate: Wed Nov 4 22:54:23 2026 +0100 solenv: raise the Windows API floor to Windows 7 (0x0601) Trunk builds only with a VS2015-or-newer toolset -- Python 3.11 needs one -- and that toolset's runtime does not install on anything older than Windows 7 SP1. The dmake and gbuild platform settings still declared Windows 2000 (WINVER/_WIN32_WINNT/_WIN32_IE 0x0500), and gbuild declared no _WIN32_WINNT at all. Declare the floor the result actually has, with the values the Bazel build has compiled and run at: WINVER/_WIN32_WINNT 0x0601 and the _WIN32_IE 0x0800 the Windows SDK derives from them. Unchanged on purpose: the GUI subsystem version pin in wntmsc14.mk (5.02/5.01 -- 6.00 switches Windows to the brokered drag-and-drop path our drop targets fail), and the modules that state their own value. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- main/solenv/gbuild/platform/windows.mk | 7 +++++-- main/solenv/inc/wntmsci11.mk | 10 +++++++++- main/solenv/inc/wntmscx.mk | 10 +++++++++- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/main/solenv/gbuild/platform/windows.mk b/main/solenv/gbuild/platform/windows.mk index 4ad02c3231..07b6a61cce 100644 --- a/main/solenv/gbuild/platform/windows.mk +++ b/main/solenv/gbuild/platform/windows.mk @@ -54,9 +54,12 @@ ifneq ($(origin CXX),default) gb_CXX := $(CXX) endif +# The Windows API floor, Windows 7 SP1 -- the same values as +# solenv/inc/wntmsci11.mk and wntmscx.mk, see there. gb_OSDEFS := \ - -DWINVER=0x0500 \ - -D_WIN32_IE=0x0500 \ + -DWINVER=0x0601 \ + -D_WIN32_WINNT=0x0601 \ + -D_WIN32_IE=0x0800 \ -DNT351 \ -DWIN32 \ -DWNT \ diff --git a/main/solenv/inc/wntmsci11.mk b/main/solenv/inc/wntmsci11.mk index e926859535..9b3a923529 100644 --- a/main/solenv/inc/wntmsci11.mk +++ b/main/solenv/inc/wntmsci11.mk @@ -218,7 +218,15 @@ CFLAGSWERRCC=-WX # settings.mk): MODULES_WITH_WARNINGS := -CDEFS+=-D_MT -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 +# The Windows API floor: Windows 7 SP1. Trunk builds only with a VS2015-or- +# newer toolset (Python 3.11 needs one, and its runtime does not install on +# anything older than Windows 7 SP1), so the old Windows 2000 values (0x0500) +# described a platform the result cannot run on. _WIN32_IE is the value the +# Windows SDK derives from _WIN32_WINNT 0x0601. A few modules state their own +# value (fpicker and sal/systools/win32/kill replace it with -U/-D, shell adds +# a second -D, openssl builds with its own flags). Python builds with its own +# project files and gets the same floor from python-3.11.15-win7.patch. +CDEFS+=-D_MT -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0800 .IF "$(COMEX)" == "11" _VC_MANIFEST_BASENAME=__VC80 .ELSE diff --git a/main/solenv/inc/wntmscx.mk b/main/solenv/inc/wntmscx.mk index b61b99e574..6e216c319c 100644 --- a/main/solenv/inc/wntmscx.mk +++ b/main/solenv/inc/wntmscx.mk @@ -225,7 +225,15 @@ CFLAGSWERRCC=-WX # settings.mk): MODULES_WITH_WARNINGS := -CDEFS+=-D_MT -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 +# The Windows API floor: Windows 7 SP1. Trunk builds only with a VS2015-or- +# newer toolset (Python 3.11 needs one, and its runtime does not install on +# anything older than Windows 7 SP1), so the old Windows 2000 values (0x0500) +# described a platform the result cannot run on. _WIN32_IE is the value the +# Windows SDK derives from _WIN32_WINNT 0x0601. A few modules state their own +# value (fpicker and sal/systools/win32/kill replace it with -U/-D, shell adds +# a second -D, openssl builds with its own flags). Python builds with its own +# project files and gets the same floor from python-3.11.15-win7.patch. +CDEFS+=-D_MT -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0800 .IF "$(COMEX)" == "11" _VC_MANIFEST_BASENAME=__VC80 .ELSE
