view modules/mktime-internal @ 18838:e1dcce772ae6

mktime: Work around TZ problem on native Windows. * 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.
author Bruno Haible <bruno@clisp.org>
date Sun, 30 Apr 2017 16:34:54 +0200
parents 1f14c6dd175d
children
line wrap: on
line source

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