]> git.saurik.com Git - wxWidgets.git/commitdiff
small fix for mingw32 compilation
authorHarco de Hilster <harcoh@caos.kun.nl>
Mon, 19 Jul 1999 14:36:34 +0000 (14:36 +0000)
committerHarco de Hilster <harcoh@caos.kun.nl>
Mon, 19 Jul 1999 14:36:34 +0000 (14:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/timercmn.cpp

index 3a0f166553ce4cbeed68bf5495df900792a2439a..fc09fd1313d28a431a6d1267b9cec4a8e6290b43 100644 (file)
@@ -136,14 +136,17 @@ long wxGetElapsedTime(bool resetTimer)
 #ifndef __VMS__
 bool wxGetLocalTime(long *timeZone, int *dstObserved)
 {
-#if defined(__MINGW32__) && defined(__EGCS__)
+#if defined(__MINGW32__) 
   time_t t0;
   struct tm *tp;
   time(&t0);
   tp = localtime(&t0);
   *timeZone = _timezone; // tp->tm_gmtoff; // ???
   *dstObserved = tp->tm_isdst;
-#elif defined(__MINGW32__)
+#elif 0
+  /* HH: This code apparently was needed by very old Mingw-gcc versions
+   * Modern mingw's don't need it. Since old gcc isn't supported anyway,
+   * I think this stuff can go */
   time_t t0;
   struct tm *tp;
   time(&t0);