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

build: bump minimal Windows version to 10 and remove not neede compatibility code #14320

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

kasper93
Copy link
Contributor

@kasper93 kasper93 commented Jun 7, 2024

Not necessary looking to merge this yet, just for tracking what is no longer needed.

Copy link

github-actions bot commented Jun 7, 2024

Download the artifacts for this pull request:

Windows
macOS

Comment on lines -36 to -44
// https://docs.microsoft.com/en-us/windows/console/setconsolemode
// These values are effective on Windows 10 build 16257 (August 2017) or later
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
#ifndef DISABLE_NEWLINE_AUTO_RETURN
#define DISABLE_NEWLINE_AUTO_RETURN 0x0008
#endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, are Windows 10 builds prior to 16257 unsupported?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

22H2, will be the final version of Windows 10

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-home-and-pro
Any other version than Windows 10 19045 are unsupported.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But there are LTSCs.

Copy link
Contributor Author

@kasper93 kasper93 Jun 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are only compile time definitions, it doesn't matter for runtime support at all. Any Windows 10 is supported.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any Windows 10 is supported.

GetSystemMetricsForDpi is only present on 1607/14393 and later, so 10240 isn't supported even though it's still officially supported until October 14, 2025.

Even though 10240 is not an important version (doesn't have a Windows Server release) it still needs to be clarified in the system requirements.

Copy link
Contributor Author

@kasper93 kasper93 Jun 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetSystemMetricsForDpi is only present on 1607/14393 and later, so 10240 isn't supported even though it's still officially supported until October 14, 2025.

Good point, I can add a note to the readme, but frankly, I don't care that much about those. It would be really surprising to me that someone managed to not update it, given how update cycle works on Windows. There were 3 more LTSC versions and only the latest one has mainstream support.

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.

None yet

4 participants