From 5406c7d724842c5348aa4d48ebb20c33ea7462aa 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/strftime.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5