From e28a37438d4ba71cd8a053e956686ab29ff97b6a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 31 Jul 2018 23:46:57 -0700 Subject: Simplify by assuming C99 math.h isnan etc. These should be portable nowadays. * src/data.c (isnan): Remove. * src/floatfns.c (isfinite, isnan): Remove. * src/print.c: Include math.h, for isinf and isnan. (float_to_string): Simplify by using them. --- src/floatfns.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/floatfns.c') diff --git a/src/floatfns.c b/src/floatfns.c index e7d404a84e0..45e786f9669 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -47,13 +47,6 @@ 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 - /* Check that X is a floating point number. */ static void -- cgit v1.2.1