summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 12:56:52 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 12:56:52 -0800
commitc47d610ae27e89911539773f15bd7940fc00d35d (patch)
treec4cd33532498690ac0c163fda67e2bb78cfdb36f /src/util
parent3d41257544d7903935e6a1407f3da6624bbc3914 (diff)
Use autoconf to check for float.h instead of platform-specific ifdefsHEADmaster
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/fontxlfd.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/fontxlfd.c b/src/util/fontxlfd.c
index f37e253..b232c36 100644
--- a/src/util/fontxlfd.c
+++ b/src/util/fontxlfd.c
@@ -183,12 +183,7 @@ xlfd_round_double(double x)
significant digits. How do you round to n significant digits on
a binary machine? */
-#if defined(i386) || defined(__i386__) || \
- defined(ia64) || defined(__ia64__) || \
- defined(__alpha__) || defined(__alpha) || \
- defined(__hppa__) || \
- defined(__amd64__) || defined(__amd64) || \
- defined(sgi)
+#ifdef HAVE_FLOAT_H
#include <float.h>
/* if we have IEEE 754 fp, we can round to binary digits... */
@@ -249,7 +244,7 @@ xlfd_round_double(double x)
}
else
#endif
-#endif /* i386 || __i386__ */
+#endif /* HAVE_FLOAT_H */
{
/*
* If not IEEE 754: Let printf() do it for you.