aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorEli Zaretskii2012-03-24 15:43:21 +0200
committerEli Zaretskii2012-03-24 15:43:21 +0200
commit8a0c01dd25dabf60ace651c7acfa1a5e326458e8 (patch)
treeb971237ab8897d13545f087c85f9a897b113df4d /src/s
parent6e7e90fa24df8bddeab77f9846d74e06f75ed9bc (diff)
downloademacs-8a0c01dd25dabf60ace651c7acfa1a5e326458e8.tar.gz
emacs-8a0c01dd25dabf60ace651c7acfa1a5e326458e8.zip
Fix bug #9960 with MSVC build on MS-Windows.
src/s/ms-w32.h (tzname): Include time.h before redirecting to _tzname. Fixes the MSVC build.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/ms-w32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index d533ae34ac3..5eed3a177dc 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -286,6 +286,12 @@ typedef int pid_t;
286#define stricmp _stricmp 286#define stricmp _stricmp
287#define tzset _tzset 287#define tzset _tzset
288 288
289/* Include time.h before redirecting tzname, since MSVC's time.h
290 defines _tzname to call a function, but also declares tzname a
291 2-element array. Having the redirection before including the
292 header thus has the effect of declaring a function that returns an
293 array, and triggers an error message. */
294#include <time.h>
289#define tzname _tzname 295#define tzname _tzname
290#if !defined (_MSC_VER) || (_MSC_VER < 1400) 296#if !defined (_MSC_VER) || (_MSC_VER < 1400)
291#undef utime 297#undef utime