Skip to content

Fix build failure when using UNICODE / _UNICODE on Windows#149

Open
Chuck Walbourn (walbourn) wants to merge 1 commit into
Ultimaker:mainfrom
walbourn:main
Open

Fix build failure when using UNICODE / _UNICODE on Windows#149
Chuck Walbourn (walbourn) wants to merge 1 commit into
Ultimaker:mainfrom
walbourn:main

Conversation

@walbourn

Copy link
Copy Markdown

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
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