mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* lib/mktime.c: Add #ifs to make the algorithmic workaround independent from the native Windows workaround. * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to 'guessing no'. (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST. Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING, NEED_MKTIME_WINDOWS. (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define NEED_MKTIME_INTERNAL. * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not gl_FUNC_MKTIME. Cope with 'guessing yes' value. * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. * doc/posix-functions/mktime.texi: Mention the native Windows workaround.
28 lines
355 B
Plaintext
28 lines
355 B
Plaintext
Description:
|
|
mktime_internal() function: convert broken-down time to linear time.
|
|
|
|
Files:
|
|
lib/mktime-internal.h
|
|
lib/mktime.c
|
|
|
|
Depends-on:
|
|
mktime
|
|
|
|
configure.ac:
|
|
gl_FUNC_MKTIME_INTERNAL
|
|
if test $WANT_MKTIME_INTERNAL = 1; then
|
|
AC_LIBOBJ([mktime])
|
|
gl_PREREQ_MKTIME
|
|
fi
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
"mktime-internal.h"
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
Paul Eggert
|