]> Savannah Git Hosting - gnulib.git/commitdiff
nstrftime: Modernize.
authorBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 12:37:17 +0000 (13:37 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 7 Feb 2024 12:37:17 +0000 (13:37 +0100)
* lib/strftime.c (__strftime_internal): Make the strftime fallback
declaration ISO C 23 compliant.

ChangeLog
lib/strftime.c

index d94ccab4f7c0d638fefc0ba6aea64fb879f01bf5..14b2585a313229c7422dec9f72869b618fb7af48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-07  Bruno Haible  <bruno@clisp.org>
+
+       nstrftime: Modernize.
+       * lib/strftime.c (__strftime_internal): Make the strftime fallback
+       declaration ISO C 23 compliant.
+
 2024-02-07  Bruno Haible  <bruno@clisp.org>
 
        nstrftime tests: Avoid test failures on FreeBSD, NetBSD, Android.
index cf0a81d95e1453abe1c9e70b5a62341bcbfbd4d2..bd519e36abb9b590f19b2a116869b6a0a356a018 100644 (file)
@@ -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