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

win: Do not call GetSystemTimePreciseAsFileTime on Windows 7 #4418

Open
wants to merge 2 commits into
base: v1.x
Choose a base branch
from

Conversation

jaredhagel2
Copy link

Modify uv_clock_gettime so that GetSystemTimePreciseAsFileTime is only used if OS supports it, otherwise GetSystemTimeAsFileTime is used. GetSystemTimePreciseAsFileTime is supported on Windows 8 or newer.

Without this change, any program using libuv that runs on Windows 7 will not start but get a dialog 'Entry Point Not Found' with text 'The procedure entry point GetSystemTimePreciseAsFileTime could not be located in the dynamic link library KERNEL32.dll.'

For reference, see https://stackoverflow.com/questions/54933940/what-clock-does-the-visual-studio-2017-crt-implementation-of-stdchronosystem.

…y used if OS supports it, otherwise GetSystemTimeAsFileTime is used. GetSystemTimePreciseAsFileTime is supported on Windows 8 or newer.

Without this change, any program using libuv that runs on Windows 7 will not start but get a dialog 'Entry Point Not Found' with text 'The procedure entry point GetSystemTimePreciseAsFileTime could not be located in the dynamic link library KERNEL32.dll.'

For reference, see https://stackoverflow.com/questions/54933940/what-clock-does-the-visual-studio-2017-crt-implementation-of-stdchronosystem.
@saghul
Copy link
Member

saghul commented May 22, 2024

Windows 7 is no longer supported: https://github.com/libuv/libuv/blob/v1.x/SUPPORTED_PLATFORMS.md

@jaredhagel2
Copy link
Author

Would support for Windows 7 fall under the 'Other' system that has 'Tier 3' support then? Tier 3 is community maintained. Our company is interested in having libuv function on Windows 7. Without this minor change any programs run on Windows 7 using libuv won't run at all.

@saghul
Copy link
Member

saghul commented May 23, 2024

Windows 7 is EOL years ago and even Node dropped support for it: nodejs/node#31954

Reviving support for Windows 7 is not something the project is open to I'd say.

Ping @libuv/collaborators

@gengjiawen
Copy link
Member

Windows 7 is EOL years ago and even Node dropped support for it: nodejs/node#31954

Reviving support for Windows 7 is not something the project is open to I'd say.

Ping @libuv/collaborators

+1. win7 is deprecated, also python and electronjs dropped support.
If you still want to make win7 compatible, you can make a fork. Thx for the idea.

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

3 participants