[Kst] branches/work/kst/portto4/kst/src/libkst

Mike Fenton mike at staikos.net
Tue Nov 18 20:49:09 CET 2008


SVN commit 886203 by fenton:

Alternate Fix for Windows build.


 M  +4 -6      math_kst.h  


--- branches/work/kst/portto4/kst/src/libkst/math_kst.h #886202:886203
@@ -141,21 +141,19 @@
   }
 }
 
-#ifdef Q_WS_WIN32
 inline double roundDouble (double x) {
+#ifdef rint
+  return rint(x);
+#else
   int i = (int) x;
   if (x >= 0.0) {
     return ((x-i) >= 0.5) ? (i + 1) : (i);
   } else {
     return (-x+i >= 0.5) ? (i - 1) : (i);
   }
+#endif
 }
-#else
-inline double roundDouble(double x) {
-  return rint(x);
 }
 #endif
-}
-#endif
 
 // vim: ts=2 sw=2 et


More information about the Kst mailing list