]> Savannah Git Hosting - gnulib.git/commit
time-h: Obey GNULIB_POSIXCHECK, not GNULIB_PORTCHECK.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Jul 2023 16:07:45 +0000 (18:07 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2023 16:47:08 +0000 (18:47 +0200)
commit5b6b579b8cd211f4f9786322e338ca679a411d17
tree3fb19685a9a04338c66793c879da344797a80df2
parentd1b40e09c9c04d5c1ff120373397c6180bc16beb
time-h: Obey GNULIB_POSIXCHECK, not GNULIB_PORTCHECK.

* lib/time.in.h (timespec_get, timespec_getres, time, nanosleep, tzset,
mktime, localtime_r, gmtime_r, localtime, strptime, ctime, strftime,
timegm): Add _GL_WARN_ON_USE invocation.
(asctime, ctime): Don't assume that these functions are declared, since
POSIX obsoletes them.
* m4/time_h.m4 (gl_TIME_H): Test for the declarations of asctime, ctime,
gmtime_r, localtime, localtime_r, mktime, nanosleep, strftime, strptime,
time, timegm, timespec_get, timespec_getres, tzset.
(gl_TIME_H_DEFAULTS): Initialize REPLACE_CTIME, REPLACE_LOCALTIME_R,
REPLACE_MKTIME, REPLACE_NANOSLEEP, REPLACE_STRFTIME, REPLACE_TIMEGM,
REPLACE_TIMESPEC_GET, REPLACE_TZSET with 0 instead of GNULIB_PORTCHECK.
* m4/ctime.m4 (gl_FUNC_CTIME): Don't re-initialize REPLACE_CTIME.
* m4/time_r.m4 (gl_TIME_R): Don't re-initialize REPLACE_LOCALTIME_R.
* m4/mktime.m4 (gl_FUNC_MKTIME): Don't re-initialize REPLACE_MKTIME.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Don't re-initialize
REPLACE_NANOSLEEP.
* m4/strftime-fixes.m4 (gl_FUNC_STRFTIME): Don't re-initialize
REPLACE_STRFTIME.
* m4/timegm.m4 (gl_FUNC_TIMEGM): Don't re-initialize REPLACE_TIMEGM.
* m4/tzset.m4 (gl_FUNC_TZSET: Don't re-initialize REPLACE_TZSET.
ChangeLog
lib/time.in.h
m4/ctime.m4
m4/mktime.m4
m4/nanosleep.m4
m4/strftime-fixes.m4
m4/time_h.m4
m4/time_r.m4
m4/timegm.m4
m4/tzset.m4