]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
nstrftime: don’t assume <time.h> defines ptrdiff_t
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Nov 2025 17:02:53 +0000 (11:02 -0600)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Nov 2025 17:03:28 +0000 (11:03 -0600)
* lib/strftime.h: Include <stddef.h>

ChangeLog
lib/strftime.h

index f4fbb6f1fa023b847dd05aa8d47fa1c3c8c0a0ef..19960aa0fd9ed15d5953b5a5d6a8026b3adc55f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-11-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       nstrftime: don’t assume <time.h> defines ptrdiff_t
+       * lib/strftime.h: Include <stddef.h>
+
        nstrftime: do not preserve errno on success
        * NEWS: Mention this, and coalesce recent changes for the
        benefit of future readers.
index e444a63baa744cebd0823ae065aa43bbc7ba6691..52385dce0ab9957fbe076d0aafde2259dcecd5ee 100644 (file)
@@ -15,6 +15,7 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+#include <stddef.h>
 #include <time.h>
 
 #ifdef __cplusplus