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

Ensure Windows version macro is minimum required to include inet_pton #1213

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

Conversation

benjitrosch
Copy link
Contributor

This should fix a very obscure issue I was running into when cross-compiling from WSL using x86_64-w64-mingw32-gcc-posix, where WINVER was not defined and _WIN32_WINNT was 0x502 (Windows Server 2003) which was not a recent enough version to use inet_pton which caused some issues with #include's.

Solution based on this article from Microsoft which details how to manually set these values: https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170

@benjitrosch benjitrosch changed the title Ensure Windows version Macro is minimum required to include inet_pton Ensure Windows version macro is minimum required to include inet_pton Jun 12, 2024
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

1 participant