[Kst] kst on solaris 9

Sam Sirlin sam at kalessin.jpl.nasa.gov
Fri Apr 30 23:55:47 CEST 2004


kst maintainers,


Using gcc 3.3.3 on solaris 9, sparc, kst-0.97, 

kst/kst/kstvector.cpp:

I had to get rid of the std: in the isnan definition, and add an
include. Then it compiles fine.  Note isnan() is a function, not a
macro.

...
/* sws add this */
#include <ieeefp.h>
...

#ifdef isnan
#define KST_ISNAN(a)	isnan(a)
#elif defined(__APPLE__)
#define KST_ISNAN(a)	(a == NAN ? 1 : 0)
#else
/*#define KST_ISNAN(a)	std::isnan(a)*/
/* sws use the function */
#define KST_ISNAN(a)	isnan(a)
#endif

Thanks for the nice code.

Sam Sirlin
Email: sam at kalessin.jpl.nasa.gov





More information about the Kst mailing list