From fcb20296d78446b60d74e09b6700d763852fb8a2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 6 Oct 2005 09:45:36 +0000 Subject: [PATCH] MSYS fix. --- simgear/environment/metar.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5