diff options
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/ms-w32.h | 6 |
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 |