[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kjs
From:       Ralf Habacker <Ralf.Habacker () freenet ! de>
Date:       2005-05-17 17:55:38
Message-ID: 1116352538.283518.10512.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 415092 by habacker:

removed unsupported stuff on cygwin using conditional __CYGWIN__

 M  +4 -2      trunk/KDE/kdelibs/kjs/date_object.cpp  


--- trunk/KDE/kdelibs/kjs/date_object.cpp #415091:415092
@@ -136,9 +136,11 @@
 #if defined BSD || defined(__linux__) || defined(__APPLE__)
   return -(t->tm_gmtoff / 60);
 #else
-#  if defined(__BORLANDC__)
+#  if defined(__BORLANDC__) || defined(__CYGWIN__)
 // FIXME consider non one-hour DST change
+#if !defined(__CYGWIN__)
 #error please add daylight savings offset here!
+#endif
   return _timezone / 60 - (t->tm_isdst > 0 ? 60 : 0);
 #  else
   return timezone / 60 - (t->tm_isdst > 0 ? 60 : 0 );
@@ -671,7 +673,7 @@
         t->tm_isdst = t3.tm_isdst;
 #else
         (void)localtime(&zero);
-#  if defined(__BORLANDC__)
+#  if defined(__BORLANDC__) || defined(__CYGWIN__)
         utcOffset = - _timezone;
 #  else
         utcOffset = - timezone;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic