Browse Source

- 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@
OPENBSD_4_4
martynas 16 years ago
parent
commit
1d0863a09a
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      src/include/math.h

+ 4
- 6
src/include/math.h View File

@ -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. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@ -17,6 +17,7 @@
#ifndef _MATH_H_ #ifndef _MATH_H_
#define _MATH_H_ #define _MATH_H_
#include <sys/_types.h>
#include <sys/cdefs.h> #include <sys/cdefs.h>
/* /*
@ -29,11 +30,8 @@ extern char __infinity[];
* C99 * 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 * XOPEN/SVID


Loading…
Cancel
Save