]> Savannah Git Hosting - gnulib.git/commitdiff
locale: Ease integration with GNU libintl.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2018 00:58:30 +0000 (02:58 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2018 00:59:09 +0000 (02:59 +0200)
* lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
GNULIB_defined_freelocale): New macros.

ChangeLog
lib/locale.in.h

index d1fd026fa73a2b52ea6301887fd813f66776a7a4..09fe7da931471827d21aee2f1a91d28a286adfcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-10-21  Bruno Haible  <bruno@clisp.org>
+
+       locale: Ease integration with GNU libintl.
+       * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
+       GNULIB_defined_freelocale): New macros.
+
 2018-10-21  Bruno Haible  <bruno@clisp.org>
 
        localename: Fine-tune support for per-thread locales on Solaris 11.4.
index be11cee1a90aa4dcda4e7d0423285aabc6325cdf..123df7a526e4f4defa8a62e68cce2d02e7cc6b1a 100644 (file)
@@ -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));