From: ehofman Date: Thu, 6 Oct 2005 09:45:36 +0000 (+0000) Subject: MSYS fix. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fcb20296d78446b60d74e09b6700d763852fb8a2;p=simgear.git MSYS fix. --- 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);