]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed: Fix test failures on FreeBSD, NetBSD, macOS.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Dec 2019 16:37:19 +0000 (17:37 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 08:12:04 +0000 (10:12 +0200)
* gettext-tools/tests/setlocale.c (setlocale): Undefine.

gettext-tools/tests/setlocale.c

index ce60424a41709884c384931a8c06d9d6e1652c01..c9ce44c5cac7bcb214b8681633e719f4583b5070 100644 (file)
@@ -1,5 +1,5 @@
 /* Fake setlocale - platform independent, for testing purposes.
-   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+   Copyright (C) 2001-2002, 2019 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include <locale.h>
 #include <string.h>
 
+/* Make this override available independently of possible overrides in
+   libgnuintl.h or locale.h.
+   Note: On platforms where _nl_locale_name_posix invokes setlocale_null, this
+   override *must* be called 'setlocale'.  */
+#undef setlocale
+
 /* Return string representation of locale CATEGORY.  */
 static const char *
 category_to_name (int category)