]> 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>
Mon, 12 Feb 2024 23:16:00 +0000 (00:16 +0100)
* lib/strftime.c (__strftime_internal): Make the strftime fallback
declaration ISO C 23 compliant.

ChangeLog
lib/nstrftime.c

index 804a34eeef9b5579d05183dabafa4ecd1928d658..33509a6f55eaea6bd8dcd165f1cb9885ec5cf447 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-07  Bruno Haible  <bruno@clisp.org>
+
+       nstrftime: Modernize.
+       * lib/nstrftime.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 69e4164dc0cd7491b1e8b17493f3f41821d68afa..21596329021d2c3abd6b8ecbe053e508cab67b57 100644 (file)
@@ -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