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

Fix UWP support #831

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix UWP support #831

wants to merge 1 commit into from

Conversation

DDoS
Copy link

@DDoS DDoS commented Jun 24, 2024

These changes come from the Vcpkg package update. I believe these would be better to have in the library itself.

Main change is to move convert_utf8_to_utf16 outside the !WINRT check, since it doesn't depend on any features unavailable in UWP.

@DDoS DDoS changed the title Fix UWP build Jun 24, 2024
@@ -81,7 +81,7 @@
#ifdef _MSC_VER
# pragma warning(push)
// warning C4127: conditional expression is constant
# pragma warning(disable : 4127)
# pragma warning(disable : 4127 4996)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the code which causes 4996?

Copy link
Author

Choose a reason for hiding this comment

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

I just copied this from the original UWP support vcpkg patch. Looks like it's originally from here. I don't have a Windows dev environment, so I can't test these changes directly, but I know it fixed the UWP CI tests in vcpkg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants