diff options
| author | Eli Zaretskii | 2012-03-24 15:43:21 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-03-24 15:43:21 +0200 |
| commit | 8a0c01dd25dabf60ace651c7acfa1a5e326458e8 (patch) | |
| tree | b971237ab8897d13545f087c85f9a897b113df4d /src | |
| parent | 6e7e90fa24df8bddeab77f9846d74e06f75ed9bc (diff) | |
| download | emacs-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')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 182493abe67..9a4d10d410e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * s/ms-w32.h (tzname): Include time.h before redirecting to | ||
| 4 | _tzname. Fixes the MSVC build. (Bug#9960) | ||
| 5 | |||
| 1 | 2012-03-24 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-03-24 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6 | 8 | * xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6 |
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 |