mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
parse-datetime: Support time zone names on MSVC.
* lib/parse-datetime.y (parse_datetime_body): Use HAVE_TZNAME_ARRAY instead of HAVE_TZNAME. Don't declare tzname. * modules/parse-datetime (Depends-on): Add tzname. * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don't invoke AC_STRUCT_TIMEZONE.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2024-06-06 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
parse-datetime: Support time zone names on MSVC.
|
||||||
|
* lib/parse-datetime.y (parse_datetime_body): Use HAVE_TZNAME_ARRAY
|
||||||
|
instead of HAVE_TZNAME. Don't declare tzname.
|
||||||
|
* modules/parse-datetime (Depends-on): Add tzname.
|
||||||
|
* m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don't invoke
|
||||||
|
AC_STRUCT_TIMEZONE.
|
||||||
|
|
||||||
2024-06-06 Bruno Haible <bruno@clisp.org>
|
2024-06-06 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
time_rz: Support time zone names on MSVC.
|
time_rz: Support time zone names on MSVC.
|
||||||
|
@@ -1863,11 +1863,8 @@ parse_datetime_body (struct timespec *result, char const *p,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#if HAVE_TZNAME
|
#if HAVE_TZNAME_ARRAY
|
||||||
{
|
{
|
||||||
# if !HAVE_DECL_TZNAME
|
|
||||||
extern char *tzname[];
|
|
||||||
# endif
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < 2; i++)
|
for (i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
# parse-datetime.m4
|
# parse-datetime.m4
|
||||||
# serial 27
|
# serial 28
|
||||||
dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc.
|
dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -49,7 +49,6 @@ AC_DEFUN([gl_PARSE_DATETIME],
|
|||||||
dnl Prerequisites of lib/parse-datetime.y.
|
dnl Prerequisites of lib/parse-datetime.y.
|
||||||
AC_REQUIRE([gl_BISON])
|
AC_REQUIRE([gl_BISON])
|
||||||
AC_REQUIRE([gl_C_COMPOUND_LITERALS])
|
AC_REQUIRE([gl_C_COMPOUND_LITERALS])
|
||||||
AC_STRUCT_TIMEZONE
|
|
||||||
AC_REQUIRE([gl_CLOCK_TIME])
|
AC_REQUIRE([gl_CLOCK_TIME])
|
||||||
AC_REQUIRE([gl_TM_GMTOFF])
|
AC_REQUIRE([gl_TM_GMTOFF])
|
||||||
])
|
])
|
||||||
|
@@ -28,6 +28,7 @@ time-h
|
|||||||
time_r
|
time_r
|
||||||
time_rz
|
time_rz
|
||||||
timegm
|
timegm
|
||||||
|
tzname
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_PARSE_DATETIME
|
gl_PARSE_DATETIME
|
||||||
|
Reference in New Issue
Block a user