Skip to content

unify and bump _WIN32_WINNT definition to Windows 8.1#2081

Open
dscho wants to merge 2 commits intogitgitgadget:masterfrom
dscho:drop-windows-vista-support
Open

unify and bump _WIN32_WINNT definition to Windows 8.1#2081
dscho wants to merge 2 commits intogitgitgadget:masterfrom
dscho:drop-windows-vista-support

Conversation

@dscho
Copy link
Copy Markdown
Member

@dscho dscho commented Apr 5, 2026

Clean-up while preparing for v2.54.0.

Changes since v1:

  • Added a patch I had forgotten to include.

Git for Windows doesn't support anything prior to Windows 8.1 since 2.47.0
and Git followed along with commits like ce6ccba (mingw: drop Windows
7-specific work-around, 2025-08-04).

There is no need to pretend to the compiler that we still support Windows
Vista, just to lock us out of easy access to newer APIs. There is also no
need to have conflicting and unused definitions claiming we support some
versions of Windows XP or even Windows NT 4.0.

Bump all definitions of _WIN32_WINNT to a realistic value of Windows 8.1.
This will also simplify code for a followup commit that will improve cpu
core detection on multi-socket systems.

Signed-off-by: Matthias Aßhauer <mha1993@live.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho self-assigned this Apr 5, 2026
@dscho
Copy link
Copy Markdown
Member Author

dscho commented Apr 5, 2026

/submit

@gitgitgadget
Copy link
Copy Markdown

gitgitgadget bot commented Apr 5, 2026

Submitted as pull.2081.git.1775386448854.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-2081/dscho/drop-windows-vista-support-v1

To fetch this version to local tag pr-2081/dscho/drop-windows-vista-support-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-2081/dscho/drop-windows-vista-support-v1

1edeb9a (Win32: warn if the console font doesn't support Unicode,
2014-06-10) introduced both code to detect the current console font on
Windows Vista and newer and a fallback for older systems to detect the
default console font and issue a warning if that font doesn't support
unicode.

Since we haven't supported any Windows older than Vista in almost a
decade, we don't need to keep the workaround.

Signed-off-by: Matthias Aßhauer <mha1993@live.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants