From: Paul Eggert Date: Wed, 23 Oct 2013 04:37:17 +0000 (-0700) Subject: Port to Solaris 10 and its bundled GCC. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1183 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4ea223d7332952cc0e1275fa4c982645e11b17f;p=emacs.git Port to Solaris 10 and its bundled GCC. Problem reported by Timothy C. Burt. * floatfns.c (isfinite, isnan): Redefine unconditionally. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3bd9dce4fb7..b534e0a1ab0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-10-23 Paul Eggert + + Port to Solaris 10 and its bundled GCC. + Problem reported by Timothy C. Burt. + * floatfns.c (isfinite, isnan): Redefine unconditionally. + 2013-10-21 Dmitry Antipov Do not allow font caches to grow too large. diff --git a/src/floatfns.c b/src/floatfns.c index f3d0936f888..9f0bab2a452 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -46,12 +46,13 @@ along with GNU Emacs. If not, see . */ #include -#ifndef isfinite -# define isfinite(x) ((x) - (x) == 0) -#endif -#ifndef isnan -# define isnan(x) ((x) != (x)) -#endif +/* 'isfinite' and 'isnan' cause build failures on Solaris 10 with the + bundled GCC in c99 mode. Work around the bugs with simple + implementations that are good enough. */ +#undef isfinite +#define isfinite(x) ((x) - (x) == 0) +#undef isnan +#define isnan(x) ((x) != (x)) /* Check that X is a floating point number. */