Chris Burdess wrote:
I have the following problem building inkscape on the above platform:
object-edit.cpp: In function `void sp_spiral_outer_set(SPItem*, const NR::Point&, const NR::Point&, unsigned int)': object-edit.cpp:842: error: `isfinite' undeclared in namespace `std'
Should this be a configure option?
We have some across this problem before with isnan(), and had trouble auto-sensing it. Maybe isfinite() should be added to this? Notice how we avoid name collision by renaming it isNaN(). It could be renamed float-attributes.h or something:
#ifdef __APPLE__
/* MacOSX definition */ #define isNaN(a) (__isnan(a))
#else
#ifdef WIN32
/* Win32 definition */ #define isNaN(a) (_isnan(a))
#else
/* Linux definition */ #define isNaN(a) (isnan(a))
#endif /* WIN32 */
#endif /* __APPLE__ */