diff -ru inkscape-20051109-0840/src/isnan.h inkscape_gcc/src/isnan.h --- inkscape-20051109-0840/src/isnan.h 2005-11-09 08:40:16.000000000 -0800 +++ inkscape_gcc/src/isnan.h 2005-11-09 16:41:15.117038160 -0800 @@ -43,6 +43,8 @@ #if defined(__isfinite) # define isFinite(_a) (__isfinite(_a)) /* MacOSX/Darwin definition < 10.4 */ +#elif defined(__sgi) +# define isFinite(_a) (_isfinite(_a)) #elif defined(isfinite) # define isFinite(_a) (isfinite(_a)) #else diff -ru inkscape-20051109-0840/src/mod360.cpp inkscape_gcc/src/mod360.cpp --- inkscape-20051109-0840/src/mod360.cpp 2005-11-09 08:40:16.000000000 -0800 +++ inkscape_gcc/src/mod360.cpp 2005-11-09 16:33:44.849909600 -0800 @@ -8,6 +8,7 @@ double mod360(double const x) { double const m = fmod(x, 360.0); +#define isnan(_a) (_isnan(_a)) double const ret = ( isnan(m) ? 0.0 : ( m < 0