]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid clashing overrides for setlocale.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Feb 2011 16:15:00 +0000 (17:15 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Jun 2011 21:39:47 +0000 (23:39 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/libgnuintl.in.h

index 7f4721093970b9d3f5cc01f327c6cb7332e25190..fe3c4448b22e54e84a9e1a369c722fc6a7f8df7f 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-12  Bruno Haible  <bruno@clisp.org>
+
+       Avoid clashing overrides for setlocale.
+       * libgnuintl.in.h (setlocale): Don't override if the gnulib override is
+       already enabled.
+
 2011-06-03  Bruno Haible  <bruno@clisp.org>
 
        * wprintf-parse.h: Apply same changes as to printf-parse.h.
index 4176b44b77f8dc89cbfbc53e200a42bc929d484d..8aea5c2e48ed050c9b53ae070d09b31429f39a1e 100644 (file)
@@ -1,5 +1,5 @@
 /* Message catalogs for internationalization.
-   Copyright (C) 1995-1997, 2000-2010 Free Software Foundation, Inc.
+   Copyright (C) 1995-1997, 2000-2011 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
@@ -431,9 +431,11 @@ extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
 /* Support for the locale chosen by the user.  */
 #if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
 
+#ifndef GNULIB_defined_setlocale /* don't override gnulib */
 #undef setlocale
 #define setlocale libintl_setlocale
 extern char *setlocale (int, const char *);
+#endif
 
 #if @HAVE_NEWLOCALE@