mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
Fix mingw build
This commit is contained in:
parent
ca705649ce
commit
9360ab4e3b
@ -2834,7 +2834,11 @@ char *date_strget(char *buf, int buflen, int localtime)
|
||||
if (localtime)
|
||||
{
|
||||
mytm = localtime_r(&t, &result);
|
||||
mytimezone = - (int)result.tm_gmtoff;
|
||||
#if defined(_WIN32)
|
||||
mytimezone = timezone;
|
||||
#else
|
||||
mytimezone = - (int)result.tm_gmtoff; // does not compile on mingw
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user