Commit 5fa8abb8 by Vicent Marti

w32-posix: Wrap the `timezone` declaration with a clause

Allows compilation in newer versions of MinGW that already defined it.
parent e68e33f3
...@@ -487,11 +487,14 @@ p_gmtime_r (const time_t *timer, struct tm *result) ...@@ -487,11 +487,14 @@ p_gmtime_r (const time_t *timer, struct tm *result)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif #endif
#ifndef _TIMEZONE_DEFINED
#define _TIMEZONE_DEFINED
struct timezone struct timezone
{ {
int tz_minuteswest; /* minutes W of Greenwich */ int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */ int tz_dsttime; /* type of dst correction */
}; };
#endif
int p_gettimeofday(struct timeval *tv, struct timezone *tz) int p_gettimeofday(struct timeval *tv, struct timezone *tz)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment