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

Barth Netterfield netterfield at astro.utoronto.ca
Fri Dec 11 21:13:34 CET 2009


SVN commit 1061472 by netterfield:

BUG: 218288
Remove some compiler warnings under windows.
The proposed patch, which I have applied here, looks harmless enough,
but I haven't personally tested it.  Let me know if there are troubles.



 M  +15 -0     math_kst.h  


--- branches/work/kst/portto4/kst/src/libkst/math_kst.h #1061471:1061472
@@ -79,14 +79,29 @@
 #endif
 
 #ifdef Q_WS_WIN32
+#ifndef isnan
 #define isnan _isnan
+#endif
+#ifndef finite
 #define finite _finite
+#endif
 #ifndef M_PI
 #define M_PI 3.14159265358979323
 #endif
+#ifndef isinf
 #define isinf !_finite
 #endif
+#endif
 
+#if 0
+#define isnan _isnan
+#define finite _finite
+#ifndef M_PI
+#define M_PI 3.14159265358979323
+#endif
+#define isinf !_finite
+#endif
+
 inline double logXLo(double x, double base = 10.0) {
   if (base == 10.0) {
     return x > 0.0 ? log10(x) : -350.0;


More information about the Kst mailing list