aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gettext-libintl/uwp.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gettext-libintl/uwp.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gettext-libintl/uwp.patch')
-rw-r--r--vcpkg/ports/gettext-libintl/uwp.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/gettext-libintl/uwp.patch b/vcpkg/ports/gettext-libintl/uwp.patch
new file mode 100644
index 0000000..c16a0f5
--- /dev/null
+++ b/vcpkg/ports/gettext-libintl/uwp.patch
@@ -0,0 +1,39 @@
+diff --git a/gettext-runtime/intl/langprefs.c b/gettext-runtime/intl/langprefs.c
+index f774ba2..f488b7f 100644
+--- a/gettext-runtime/intl/langprefs.c
++++ b/gettext-runtime/intl/langprefs.c
+@@ -38,6 +38,11 @@ extern void _nl_locale_name_canonicalize (char *name);
+
+ #if defined _WIN32
+ # define WIN32_NATIVE
++# if defined(WINAPI_FAMILY_PARTITION)
++# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
++# undef WIN32_NATIVE
++# endif
++# endif
+ #endif
+
+ #ifdef WIN32_NATIVE
+diff --git a/gettext-runtime/intl/gnulib-lib/localcharset.c b/gettext-runtime/intl/gnulib-lib/localcharset.c
+index ec75427..9e063e4 100644
+--- a/gettext-runtime/intl/gnulib-lib/localcharset.c
++++ b/gettext-runtime/intl/gnulib-lib/localcharset.c
+@@ -34,6 +34,9 @@
+ #if defined _WIN32 && !defined __CYGWIN__
+ # define WINDOWS_NATIVE
+ # include <locale.h>
++# if !defined(WINAPI_FAMILY_PARTITION)
++# define WINAPI_FAMILY_PARTITION(x) (0)
++# endif
+ #endif
+
+ #if defined __EMX__
+@@ -912,6 +915,8 @@ locale_charset (void)
+ /* The canonical name cannot be determined. */
+ codeset = "";
+
++# elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
++ codeset = "";
+ # elif defined WINDOWS_NATIVE
+
+ char buf[2 + 10 + 1];