2023-01-27 16:25:29 +01:00
|
|
|
diff --git a/gettext-runtime/gnulib-lib/fcntl.c b/gettext-runtime/gnulib-lib/fcntl.c
|
|
|
|
index f9753c4..3a3caee 100644
|
|
|
|
--- a/gettext-runtime/gnulib-lib/fcntl.c
|
|
|
|
+++ b/gettext-runtime/gnulib-lib/fcntl.c
|
|
|
|
@@ -38,6 +38,12 @@
|
|
|
|
# define WIN32_LEAN_AND_MEAN
|
|
|
|
# include <windows.h>
|
|
|
|
|
|
|
|
+# if defined(WINAPI_FAMILY_PARTITION)
|
|
|
|
+# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
|
|
|
+# define HANDLE_FLAG_INHERIT 0
|
|
|
|
+# endif
|
|
|
|
+# endif
|
|
|
|
+
|
|
|
|
/* Get _get_osfhandle. */
|
|
|
|
# if GNULIB_MSVC_NOTHROW
|
|
|
|
# include "msvc-nothrow.h"
|
2023-12-18 22:09:44 +01:00
|
|
|
diff --git a/gettext-runtime/gnulib-lib/localcharset.c b/gettext-runtime/gnulib-lib/localcharset.c
|
2023-01-27 16:25:29 +01:00
|
|
|
index ec75427..9e063e4 100644
|
2023-12-18 22:09:44 +01:00
|
|
|
--- a/gettext-runtime/gnulib-lib/localcharset.c
|
|
|
|
+++ b/gettext-runtime/gnulib-lib/localcharset.c
|
2023-01-27 16:25:29 +01:00
|
|
|
@@ -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];
|
2024-03-12 04:32:06 +01:00
|
|
|
diff --git a/gettext-runtime/gnulib-lib/localename-unsafe.c b/gettext-runtime/gnulib-lib/localename-unsafe.c
|
2023-01-27 16:25:29 +01:00
|
|
|
index d77bb81..3c6e055 100644
|
2024-03-12 04:32:06 +01:00
|
|
|
--- a/gettext-runtime/gnulib-lib/localename-unsafe.c
|
|
|
|
+++ b/gettext-runtime/gnulib-lib/localename-unsafe.c
|
2023-01-27 16:25:29 +01:00
|
|
|
@@ -69,6 +69,11 @@ extern char * getlocalename_l(int, locale_t);
|
|
|
|
|
|
|
|
#if defined _WIN32 && !defined __CYGWIN__
|
|
|
|
# define WINDOWS_NATIVE
|
|
|
|
+# if defined(WINAPI_FAMILY_PARTITION)
|
|
|
|
+# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
|
|
|
+# undef WIN32_NATIVE
|
|
|
|
+# endif
|
|
|
|
+# endif
|
2023-12-18 22:09:44 +01:00
|
|
|
# include "glthread/lock.h"
|
|
|
|
#endif
|
|
|
|
|