From: Bruno Haible Date: Wed, 7 Feb 2024 12:37:17 +0000 (+0100) Subject: nstrftime: Modernize. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=def0e6819ded9c26401192111d2d4d22933ea590;p=gnulib.git nstrftime: Modernize. * lib/strftime.c (__strftime_internal): Make the strftime fallback declaration ISO C 23 compliant. --- diff --git a/ChangeLog b/ChangeLog index 804a34eeef..33509a6f55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-02-07 Bruno Haible + + nstrftime: Modernize. + * lib/nstrftime.c (__strftime_internal): Make the strftime fallback + declaration ISO C 23 compliant. + 2024-02-07 Bruno Haible nstrftime tests: Avoid test failures on FreeBSD, NetBSD, Android. diff --git a/lib/nstrftime.c b/lib/nstrftime.c index 69e4164dc0..2159632902 100644 --- a/lib/nstrftime.c +++ b/lib/nstrftime.c @@ -869,7 +869,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize) "#define strftime rpl_strftime". */ # ifdef strftime # undef strftime - size_t strftime (); + size_t strftime (char *, size_t, const char *, struct tm const *); # endif /* The space helps distinguish strftime failure from empty