MSYS fix.
This commit is contained in:
@@ -156,7 +156,7 @@ void SGMetar::useCurrentDate()
|
|||||||
{
|
{
|
||||||
struct tm now;
|
struct tm now;
|
||||||
time_t now_sec = time(0);
|
time_t now_sec = time(0);
|
||||||
#ifdef _MSC_VER
|
#if defined( _MSC_VER ) || defined ( __MINGW32__ )
|
||||||
now = *gmtime(&now_sec);
|
now = *gmtime(&now_sec);
|
||||||
#else
|
#else
|
||||||
gmtime_r(&now_sec, &now);
|
gmtime_r(&now_sec, &now);
|
||||||
|
|||||||
Reference in New Issue
Block a user