summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/float.h
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-04-25 02:36:29 +0000
committerdas <das@FreeBSD.org>2004-04-25 02:36:29 +0000
commit0d58ef0153a10f2eaf1628fa7acf553e2c90742a (patch)
tree308e2e55aa2f15d001563a139a0f3b3c45777f3e /sys/amd64/include/float.h
parentd24349d79f5419c746158b6eea486a85194be79b (diff)
downloadFreeBSD-src-0d58ef0153a10f2eaf1628fa7acf553e2c90742a.zip
FreeBSD-src-0d58ef0153a10f2eaf1628fa7acf553e2c90742a.tar.gz
Hide FLT_EVAL_METHOD and DECIMAL_DIG in pre-C99 compilation
environments. PR: 63935 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Diffstat (limited to 'sys/amd64/include/float.h')
-rw-r--r--sys/amd64/include/float.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/include/float.h b/sys/amd64/include/float.h
index 9f77ba1..4c35ed7 100644
--- a/sys/amd64/include/float.h
+++ b/sys/amd64/include/float.h
@@ -33,10 +33,14 @@
#ifndef _MACHINE_FLOAT_H_
#define _MACHINE_FLOAT_H_ 1
+#include <sys/cdefs.h>
+
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS 1 /* FP addition rounds to nearest */
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */
#define DECIMAL_DIG 21 /* max precision in decimal digits */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
OpenPOWER on IntegriCloud