]> git.mxchange.org Git - simgear.git/commitdiff
MSYS fix.
authorehofman <ehofman>
Thu, 6 Oct 2005 09:45:36 +0000 (09:45 +0000)
committerehofman <ehofman>
Thu, 6 Oct 2005 09:45:36 +0000 (09:45 +0000)
simgear/environment/metar.cxx

index 8966b77179f921a0e51d2750fc9c2aceeafc1845..fa7477f518e5d2fa12995cda2e97170ee4fc3f70 100644 (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);