[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Sep 9 17:46:34 CEST 2004
CVS commit by staikos:
slightly modified patch to fix solaris build
CCMAIL: 89179-done at bugs.kde.org
M +8 -1 kst2dplot.cpp 1.261
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.260:1.261
@@ -18,4 +18,7 @@
#include <assert.h>
#include <float.h>
+#ifdef __sun
+#include <ieeefp.h>
+#endif
#include <limits.h>
#include <math.h>
@@ -54,6 +57,10 @@
#endif
+#if defined(__SVR4) && defined(__sun)
+ inline int isinf(double x) { return x == x && !finite(x); }
+#endif
+
static double ticks[] = {1.0, 2.0, 4.0, 5.0, 10.0};
-static int iNumTicks = sizeof( ticks ) / sizeof( double );
+static int iNumTicks = sizeof(ticks) / sizeof(double);
inline int d2i(double x) {
More information about the Kst
mailing list