Remove isnan hack for Solaris 10 gcc 3.4.3

This seems to have been a false alarm (Bug#26018).
* src/data.c (isnan):
* src/floatfns.c (isfinite, isnan):
Use standard implementation if available.
This commit is contained in:
Paul Eggert 2017-03-07 09:50:15 -08:00
parent 95f3fd2040
commit a136734f3f
2 changed files with 11 additions and 9 deletions

View file

@ -19,6 +19,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
#include <math.h>
#include <stdio.h>
#include <byteswap.h>
@ -2812,8 +2814,9 @@ arith_driver (enum arithop code, ptrdiff_t nargs, Lisp_Object *args)
return val;
}
#undef isnan
#define isnan(x) ((x) != (x))
#ifndef isnan
# define isnan(x) ((x) != (x))
#endif
static Lisp_Object
float_arith_driver (double accum, ptrdiff_t argnum, enum arithop code,

View file

@ -47,13 +47,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <count-leading-zeros.h>
/* '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))
#ifndef isfinite
# define isfinite(x) ((x) - (x) == 0)
#endif
#ifndef isnan
# define isnan(x) ((x) != (x))
#endif
/* Check that X is a floating point number. */