summaryrefslogtreecommitdiff
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-03-07 09:50:15 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-03-07 09:51:16 -0800
commita136734f3fdc17bfb5924e30e597b00057c916d0 (patch)
tree936407c3678b779361c8411a899ff8f6b8f358b1 /src/floatfns.c
parent95f3fd204097fd78be27cf60b390677c6aad61ed (diff)
downloademacs-a136734f3fdc17bfb5924e30e597b00057c916d0.tar.gz
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.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 8534f1d04e4..47553f27e82 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -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. */