summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-08-29 13:13:22 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-08-29 13:13:22 +0000
commitdd4db024275291fa6afe4e422e7c0d0282d9dcee (patch)
tree6ec8257536c71e3c8d595d34d00477870de725b4 /sys/arch/vax/include
parent1a5d13f5953dabd1f4a09c3a9c4ff92520a5ca2f (diff)
Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.
ok guenther@
Diffstat (limited to 'sys/arch/vax/include')
-rw-r--r--sys/arch/vax/include/float.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/vax/include/float.h b/sys/arch/vax/include/float.h
index ceb63589fbd..eec2c68c6c0 100644
--- a/sys/arch/vax/include/float.h
+++ b/sys/arch/vax/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.8 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: float.h,v 1.9 2011/08/29 13:13:21 kettenis Exp $ */
/* $NetBSD: float.h,v 1.5 1998/10/10 02:13:55 matt Exp $ */
/*
@@ -35,9 +35,13 @@
#ifndef _MACHINE_FLOAT_H_
#define _MACHINE_FLOAT_H_
+#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 0 /* no promotions */
+#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */
@@ -73,4 +77,8 @@
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 18
+#endif
+
#endif /* _MACHINE_FLOAT_H_ */