From: mjwybrow Date: Mon, 9 Apr 2007 04:19:38 +0000 (+0000) Subject: * src/isnan.h: Fix isnan definition for GCC 3.x on OS X. Patch #1693278. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=08787ad2649c6be6872aea58d0e3849404e366ab;p=inkscape.git * src/isnan.h: Fix isnan definition for GCC 3.x on OS X. Patch #1693278. --- diff --git a/src/isnan.h b/src/isnan.h index a1755bdb9..608f9bb56 100644 --- a/src/isnan.h +++ b/src/isnan.h @@ -27,6 +27,8 @@ */ #if defined(__isnan) +# define isNaN(_a) (__isnan(_a)) +#elif defined(__APPLE__) && __GNUC__ == 3 # define isNaN(_a) (__isnan(_a)) /* MacOSX/Darwin definition < 10.4 */ #elif defined(WIN32) || defined(_isnan) # define isNaN(_a) (_isnan(_a)) /* Win32 definition */ @@ -44,6 +46,8 @@ #if defined(__isfinite) +# define isFinite(_a) (__isfinite(_a)) +#elif defined(__APPLE__) && __GNUC__ == 3 # define isFinite(_a) (__isfinite(_a)) /* MacOSX/Darwin definition < 10.4 */ #elif defined(__sgi) # define isFinite(_a) (_isfinite(_a))