From: Bruno Haible Date: Wed, 7 Feb 2024 12:37:17 +0000 (+0100) Subject: nstrftime: Modernize. X-Git-Tag: v1.0~458 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5406c7d724842c5348aa4d48ebb20c33ea7462aa;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 d94ccab4f7..14b2585a31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-02-07 Bruno Haible + + nstrftime: Modernize. + * lib/strftime.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/strftime.c b/lib/strftime.c index cf0a81d95e..bd519e36ab 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -868,7 +868,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