summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/include/float.h2
-rw-r--r--sys/amd64/include/float.h4
-rw-r--r--sys/i386/include/float.h4
-rw-r--r--sys/ia64/include/float.h2
-rw-r--r--sys/powerpc/include/float.h4
-rw-r--r--sys/sparc64/include/float.h2
6 files changed, 18 insertions, 0 deletions
diff --git a/sys/alpha/include/float.h b/sys/alpha/include/float.h
index 3bda0f6..b2bfa11 100644
--- a/sys/alpha/include/float.h
+++ b/sys/alpha/include/float.h
@@ -41,8 +41,10 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
#define DECIMAL_DIG 17 /* max precision in decimal digits */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
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) */
diff --git a/sys/i386/include/float.h b/sys/i386/include/float.h
index 9f77ba1..4c35ed7 100644
--- a/sys/i386/include/float.h
+++ b/sys/i386/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) */
diff --git a/sys/ia64/include/float.h b/sys/ia64/include/float.h
index 02b4a71..ffd430b 100644
--- a/sys/ia64/include/float.h
+++ b/sys/ia64/include/float.h
@@ -37,8 +37,10 @@
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS 1 /* FP addition rounds to nearest */
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
#define DECIMAL_DIG 35 /* max precision in decimal digits */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
diff --git a/sys/powerpc/include/float.h b/sys/powerpc/include/float.h
index 67d7259..1d683f6 100644
--- a/sys/powerpc/include/float.h
+++ b/sys/powerpc/include/float.h
@@ -34,10 +34,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 /* operands promoted to double */
#define DECIMAL_DIG 35 /* max precision in decimal digits */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
diff --git a/sys/sparc64/include/float.h b/sys/sparc64/include/float.h
index 993d7aa..6526c5f 100644
--- a/sys/sparc64/include/float.h
+++ b/sys/sparc64/include/float.h
@@ -46,8 +46,10 @@ __END_DECLS
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS __flt_rounds()
+#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotion */
#define DECIMAL_DIG 35 /* max precision in decimal digits */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */
OpenPOWER on IntegriCloud