Skip to content

Conversation

@walbourn
Copy link

@walbourn walbourn commented Feb 5, 2023

Per the UTF-8 Everywhere Manifesto, it's best to not rely on the legacy ANSI .vs UNICODE macros for Win32 functions that take strings. Since you explicitly use a std::string for the call to InetPton you should explicitly use the InetPtonA method.

This causes problems when trying to build your library using vcpkg manager when the setup adds the recommended UNICODE _UNICODE defines.

@github-actions github-actions bot added the PR: Community Contribution 👑 Community Contribution PR's label Feb 5, 2023
@jellespijker jellespijker self-assigned this Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Community Contribution 👑 Community Contribution PR's

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants