+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>
time_rz: Support time zone names on MSVC.
%{
/* Parse a string into an internal timestamp.
- Copyright (C) 1999-2000, 2002-2023 Free Software Foundation, Inc.
+ Copyright (C) 1999-2000, 2002-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
}
#else
-#if HAVE_TZNAME
+#if HAVE_TZNAME_ARRAY
{
-# if !HAVE_DECL_TZNAME
- extern char *tzname[];
-# endif
int i;
for (i = 0; i < 2; i++)
{
-# parse-datetime.m4 serial 27
-dnl Copyright (C) 2002-2006, 2008-2023 Free Software Foundation, Inc.
+# parse-datetime.m4 serial 28
+dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl Prerequisites of lib/parse-datetime.y.
AC_REQUIRE([gl_BISON])
AC_REQUIRE([gl_C_COMPOUND_LITERALS])
- AC_STRUCT_TIMEZONE
AC_REQUIRE([gl_CLOCK_TIME])
AC_REQUIRE([gl_TM_GMTOFF])
])
time_r
time_rz
timegm
+tzname
configure.ac:
gl_PARSE_DATETIME