]> 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:28:10 +0000 (00:28 +0100)
* lib/strftime.c (__strftime_internal): Make the strftime fallback
declaration ISO C 23 compliant.

ChangeLog
lib/nstrftime.c

index 4aa9666df105c7fdd77dee41ef38631d6fb20940..3077b904bf6c0771424c6dfa691318b07bb23271 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 c4bef575fcdabaa8dc2e9af85a0995a6885b4b48..21596329021d2c3abd6b8ecbe053e508cab67b57 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This file is free software: you can redistribute it and/or modify
@@ -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