mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-13 19:12:24 +00:00
w32-posix: Wrap the timezone
declaration with a clause
Allows compilation in newer versions of MinGW that already defined it.
This commit is contained in:
parent
e68e33f33d
commit
5fa8abb868
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user