diff --git a/simgear/environment/metar.cxx b/simgear/environment/metar.cxx index 8966b771..fa7477f5 100644 --- a/simgear/environment/metar.cxx +++ b/simgear/environment/metar.cxx @@ -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);