Summary: | Sun compilation failing in 1.0.0_devel | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | A patch that allows compilation on a Solaris 8 machine... |
Description
Nicolas Brisset
2004-09-09 17:39:06 UTC
Created attachment 7472 [details]
A patch that allows compilation on a Solaris 8 machine...
That solved the problem for me.
CVS commit by staikos: slightly modified patch to fix solaris build CCMAIL: 89179-done@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) { |