From dd4db024275291fa6afe4e422e7c0d0282d9dcee Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 29 Aug 2011 13:13:22 +0000 Subject: Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99. ok guenther@ --- sys/arch/sparc64/include/float.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/include/float.h b/sys/arch/sparc64/include/float.h index c91197f83d2..16939fd7cd1 100644 --- a/sys/arch/sparc64/include/float.h +++ b/sys/arch/sparc64/include/float.h @@ -1,4 +1,4 @@ -/* $OpenBSD: float.h,v 1.6 2011/03/23 16:54:37 pirofti Exp $ */ +/* $OpenBSD: float.h,v 1.7 2011/08/29 13:13:21 kettenis Exp $ */ /* $NetBSD: float.h,v 1.3 2001/09/21 20:48:02 eeh Exp $ */ /* @@ -52,7 +52,9 @@ __END_DECLS #define FLT_RADIX 2 /* b */ #define FLT_ROUNDS __flt_rounds() +#if __ISO_C_VISIBLE >= 1999 #define FLT_EVAL_METHOD 0 /* no promotions */ +#endif #define FLT_MANT_DIG 24 /* p */ #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ @@ -84,4 +86,8 @@ __END_DECLS #define LDBL_MAX 1.189731495357231765085759326628007016E+4932L #define LDBL_MAX_10_EXP (+4932) +#if __ISO_C_VISIBLE >= 1999 +#define DECIMAL_DIG 36 +#endif + #endif /* _MACHINE_FLOAT_H_ */ -- cgit v1.2.3