src/s/ms-w32.h (tzname): Include time.h before redirecting to
_tzname. Fixes the MSVC build.
+2012-03-24 Eli Zaretskii <eliz@gnu.org>
+
+ * s/ms-w32.h (tzname): Include time.h before redirecting to
+ _tzname. Fixes the MSVC build. (Bug#9960)
+
2012-03-24 Andreas Schwab <schwab@linux-m68k.org>
* xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6
#define stricmp _stricmp
#define tzset _tzset
+/* Include time.h before redirecting tzname, since MSVC's time.h
+ defines _tzname to call a function, but also declares tzname a
+ 2-element array. Having the redirection before including the
+ header thus has the effect of declaring a function that returns an
+ array, and triggers an error message. */
+#include <time.h>
#define tzname _tzname
#if !defined (_MSC_VER) || (_MSC_VER < 1400)
#undef utime