From 1d0863a09a5eb2f3dd2af91f20973eb717f977c8 Mon Sep 17 00:00:00 2001 From: martynas <> Date: Mon, 21 Jul 2008 20:50:54 +0000 Subject: [PATCH] - add proper double_t and float_t definitions for each arch - math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@ --- src/include/math.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/include/math.h b/src/include/math.h index 7c039b09..665f22c7 100644 --- a/src/include/math.h +++ b/src/include/math.h @@ -1,4 +1,4 @@ -/* $OpenBSD: math.h,v 1.16 2008/07/16 15:01:19 martynas Exp $ */ +/* $OpenBSD: math.h,v 1.17 2008/07/21 20:50:54 martynas Exp $ */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -17,6 +17,7 @@ #ifndef _MATH_H_ #define _MATH_H_ +#include #include /* @@ -29,11 +30,8 @@ extern char __infinity[]; * C99 */ -/* XXX just appease the committee for now, needs proper defs... */ - -typedef float float_t; -typedef double double_t; -#define FLT_EVAL_METHOD (-1) +typedef __double_t double_t; +typedef __float_t float_t; /* * XOPEN/SVID