From e915c32cc74671a03a4f656bdbbe9b8103a5ff19 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 1 May 2023 09:04:15 -0700 Subject: mktime: prefer C23 style overflow checking Prefer stdckdint.h macros to intprops.h macros where either will do, as this is the C23 standard. Also, it ports around a pcc bug. * config/srclist.txt: Comment out mktime.c. * lib/mktime.c: Include stdckdint.h, not intprops.h. (__mktime_internal): Prefer stdckdint.h to intprops.h macros. * modules/mktime (Depends-on): Add stdckdint. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8f03557265..0b8e61c123 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2023-05-01 Paul Eggert + mktime: prefer C23 style overflow checking + Prefer stdckdint.h macros to intprops.h macros where either will do, + as this is the C23 standard. Also, it ports around a pcc bug. + * config/srclist.txt: Comment out mktime.c. + * lib/mktime.c: Include stdckdint.h, not intprops.h. + (__mktime_internal): Prefer stdckdint.h to intprops.h macros. + * modules/mktime (Depends-on): Add stdckdint. + limits-h: port to pcc * doc/posix-headers/limits.texi: Document the issue. * lib/limits.in.h (MB_LEN_MAX): New macro, if not already defined. -- cgit v1.2.1