summaryrefslogtreecommitdiffstats
path: root/sys/arch/sh/include/float.h
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-08-29 13:13:21 +0000
committerkettenis <kettenis@openbsd.org>2011-08-29 13:13:21 +0000
commit62958de03bcf767bbd149214e8f0dff18a27d68f (patch)
tree768ba58683cfc9419acdde1e2e93f1a8c2a22023 /sys/arch/sh/include/float.h
parentUpdate firmware to the latest version available from Myricom (1.4.53a). (diff)
downloadwireguard-openbsd-62958de03bcf767bbd149214e8f0dff18a27d68f.tar.xz
wireguard-openbsd-62958de03bcf767bbd149214e8f0dff18a27d68f.zip
Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.
ok guenther@
Diffstat (limited to 'sys/arch/sh/include/float.h')
-rw-r--r--sys/arch/sh/include/float.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sh/include/float.h b/sys/arch/sh/include/float.h
index 9d8f67f7f06..bdcbdbc0958 100644
--- a/sys/arch/sh/include/float.h
+++ b/sys/arch/sh/include/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.2 2008/07/21 20:50:55 martynas Exp $ */
+/* $OpenBSD: float.h,v 1.3 2011/08/29 13:13:21 kettenis Exp $ */
/*
* Copyright (c) 1989 Regents of the University of California.
@@ -42,7 +42,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) */
@@ -74,4 +76,8 @@ __END_DECLS
#define LDBL_MAX DBL_MAX
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP
+#if __ISO_C_VISIBLE >= 1999
+#define DECIMAL_DIG 17
+#endif
+
#endif /* _SH_FLOAT_H_ */