MSYS fix.

This commit is contained in:
ehofman
2005-10-06 09:45:36 +00:00
parent 6bb9080017
commit fcb20296d7

View File

@@ -156,7 +156,7 @@ void SGMetar::useCurrentDate()
{
struct tm now;
time_t now_sec = time(0);
#ifdef _MSC_VER
#if defined( _MSC_VER ) || defined ( __MINGW32__ )
now = *gmtime(&now_sec);
#else
gmtime_r(&now_sec, &now);