Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting _WIN32_WINNT for targetting older Windows API versions #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thp
Copy link
Contributor

@thp thp commented Dec 3, 2024

The default version has been changed to Windows 10 in mingw-w64 8.0.1 and newer (mirror/mingw-w64@f3c53a5) and was Windows Server 2003 before that.

This patch allows optionally building a toolchain that can target older versions of Windows.

The article Update WINVER and _WIN32_WINNT on Microsoft Learn has some details on the possible values.

Building the toolchain for an older version of Windows will still make the resulting binaries work on newer versions, but new APIs introduced after that version won't be used.

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.

1 participant