diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-07-09 17:52:31 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2003-07-09 17:52:31 +0000 |
commit | 03d65dd99ba593d2dab1a8151fa7766b650755ac (patch) | |
tree | a5694d92c663d4d6ab36f0334bcea7ba0032fbf9 /newlib/libc | |
parent | 4d782b426a09120642906e12e21bf669b7bb77db (diff) | |
download | cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.tar.gz cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.tar.bz2 cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.zip |
* libc/include/math.h (nan, nanf): Update prototype to C99.
* libm/common/s_nan.c (nan): Likewise.
* libm/common/s_nanf.c (nanf, nan): Likewise.
* libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/math.h | 4 | ||||
-rw-r--r-- | newlib/libc/sys/linux/cmath/math_private.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 16098c66c..1be7511dc 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -119,7 +119,7 @@ extern int __fpclassifyd (double x); /* Non ANSI double precision functions. */ extern double infinity _PARAMS((void)); -extern double nan _PARAMS((void)); +extern double nan _PARAMS((const char *)); extern int isnan _PARAMS((double)); extern int isinf _PARAMS((double)); extern int finite _PARAMS((double)); @@ -234,7 +234,7 @@ extern float fminf _PARAMS((float, float)); extern float fmaf _PARAMS((float, float, float)); extern float infinityf _PARAMS((void)); -extern float nanf _PARAMS((void)); +extern float nanf _PARAMS((const char *)); extern int isnanf _PARAMS((float)); extern int isinff _PARAMS((float)); extern int finitef _PARAMS((float)); diff --git a/newlib/libc/sys/linux/cmath/math_private.h b/newlib/libc/sys/linux/cmath/math_private.h index 6c4a472cf..148376c44 100644 --- a/newlib/libc/sys/linux/cmath/math_private.h +++ b/newlib/libc/sys/linux/cmath/math_private.h @@ -24,14 +24,14 @@ #define INFINITY HUGE_VALF -#define __nan(x) nan() +#define __nan nan #define __isnan isnan #define __isinf isinf #define __copysignf copysignf #define __copysign copysign #define __isnanf isnanf #define __isinff isinff -#define __nanf(x) nanf() +#define __nanf nanf #define feraiseexcept(x) /* nothing */ #define __sincos sincos #define __sincosf sincosf |