[Kst] [Bug 89179] Sun compilation failing in 1.0.0_devel

George Staikos staikos at kde.org
Thu Sep 9 17:46:43 CEST 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=89179        
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2004-09-09 17:46 -------
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) {



More information about the Kst mailing list