[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: localename: Add support for per-thread locales on Solaris 11.4
From: |
Bruno Haible |
Subject: |
Re: localename: Add support for per-thread locales on Solaris 11.4 |
Date: |
Mon, 22 Oct 2018 03:01:39 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-137-generic; KDE/5.18.0; x86_64; ; ) |
And another patch, also for integration with GNU libintl.
2018-10-21 Bruno Haible <address@hidden>
locale: Ease integration with GNU libintl.
* lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
GNULIB_defined_freelocale): New macros.
diff --git a/lib/locale.in.h b/lib/locale.in.h
index be11cee..123df7a 100644
--- a/lib/locale.in.h
+++ b/lib/locale.in.h
@@ -195,6 +195,7 @@ _GL_WARN_ON_USE (setlocale, "setlocale works differently on
native Windows - "
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef newlocale
# define newlocale rpl_newlocale
+# define GNULIB_defined_newlocale 1
# endif
_GL_FUNCDECL_RPL (newlocale, locale_t,
(int category_mask, const char *name, locale_t base)
@@ -222,6 +223,7 @@ _GL_WARN_ON_USE (newlocale, "newlocale is not portable");
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef duplocale
# define duplocale rpl_duplocale
+# define GNULIB_defined_duplocale 1
# endif
_GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL
((1)));
_GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale));
@@ -246,6 +248,7 @@ _GL_WARN_ON_USE (duplocale, "duplocale is buggy on some
glibc systems - "
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef freelocale
# define freelocale rpl_freelocale
+# define GNULIB_defined_freelocale 1
# endif
_GL_FUNCDECL_RPL (freelocale, void, (locale_t locale) _GL_ARG_NONNULL ((1)));
_GL_CXXALIAS_RPL (freelocale, void, (locale_t locale));