]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix a warning (regression from 2020-01-05).
authorBruno Haible <bruno@clisp.org>
Mon, 20 Apr 2020 01:56:48 +0000 (03:56 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 20 Apr 2020 01:59:51 +0000 (03:59 +0200)
* gettext-tools/tests/tstgettext.c (setlocale): Declare after defining as
fake_setlocale.
* gettext-tools/tests/tstngettext.c (setlocale): Likewise.
* gettext-tools/tests/plural-1-prg.c (setlocale): Likewise.
* gettext-tools/tests/format-c-3-prg.c (setlocale): Likewise.
* gettext-tools/tests/format-c-4-prg.c (setlocale): Likewise.

gettext-tools/tests/format-c-3-prg.c
gettext-tools/tests/format-c-4-prg.c
gettext-tools/tests/plural-1-prg.c
gettext-tools/tests/tstgettext.c
gettext-tools/tests/tstngettext.c

index f26e7a5cdfda8afd88d0c39cb17a599c1c4fae1a..8cd47a4deaba173b9ddf17a22667d02fd7486630 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program, used by the format-c-3 test.
-   Copyright (C) 2002, 2009, 2013, 2018 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2009, 2013, 2018, 2020 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
@@ -42,6 +42,7 @@
 #undef setlocale
 #if defined _WIN32 && !defined __CYGWIN__
 # define setlocale fake_setlocale
+extern char *setlocale (int category, SETLOCALE_CONST char *locale);
 #endif
 
 #define _(string) gettext (string)
index 5160ff6ef8d88bb73f93ad77042a4b61f4b245d6..84ed4f9c3e2b06a17547dbe5bdc61cef8b6e18fd 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program, used by the format-c-4 test.
-   Copyright (C) 2002, 2009, 2013, 2018 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2009, 2013, 2018, 2020 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
@@ -42,6 +42,7 @@
 #undef setlocale
 #if defined _WIN32 && !defined __CYGWIN__
 # define setlocale fake_setlocale
+extern char *setlocale (int category, SETLOCALE_CONST char *locale);
 #endif
 
 #define _(string) gettext (string)
index e681595b5be3db64247eebae6b8729ba28ef4587..0df74d2403d46d6b615fd3e5c21d077b9294d085 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program, used by the plural-1 test.
-   Copyright (C) 2001-2002, 2009, 2013, 2018 Free Software Foundation, Inc.
+   Copyright (C) 2001-2002, 2009, 2013, 2018, 2020 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
@@ -38,6 +38,7 @@
 #undef setlocale
 #if defined _WIN32 && !defined __CYGWIN__
 # define setlocale fake_setlocale
+extern char *setlocale (int category, SETLOCALE_CONST char *locale);
 #endif
 
 int
index d3f44ff9c92a29486888083db3a8db8eca73fa8b..8845ce0906dc67f3fde4091067b179eaf1aad760 100644 (file)
@@ -1,5 +1,5 @@
 /* gettext - retrieve text string from message catalog and print it.
-   Copyright (C) 1995-1997, 2000-2007, 2012, 2018-2019 Free Software
+   Copyright (C) 1995-1997, 2000-2007, 2012, 2018-2020 Free Software
    Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, May 1995.
 
@@ -44,6 +44,7 @@
 #if defined _WIN32 && !defined __CYGWIN__
 # undef setlocale
 # define setlocale fake_setlocale
+extern char *setlocale (int category, SETLOCALE_CONST char *locale);
 #endif
 
 #define _(str) gettext (str)
index 42865aee7893d8289963fb0a9cf341da9e0f2361..9b253aaf4d48e310beaaea7eec67e8f2690e1195 100644 (file)
@@ -1,5 +1,5 @@
 /* ngettext - retrieve plural form strings from message catalog and print them.
-   Copyright (C) 1995-1997, 2000-2007, 2012, 2018-2019 Free Software
+   Copyright (C) 1995-1997, 2000-2007, 2012, 2018-2020 Free Software
    Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
@@ -41,6 +41,7 @@
 #if defined _WIN32 && !defined __CYGWIN__
 # undef setlocale
 # define setlocale fake_setlocale
+extern char *setlocale (int category, SETLOCALE_CONST char *locale);
 #endif
 
 #define _(str) gettext (str)