From def0e6819ded9c26401192111d2d4d22933ea590 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 7 Feb 2024 13:37:17 +0100 Subject: [PATCH] nstrftime: Modernize. * lib/strftime.c (__strftime_internal): Make the strftime fallback declaration ISO C 23 compliant. --- ChangeLog | 6 ++++++ lib/nstrftime.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5