diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-05-31 16:30:46 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-05-31 16:30:46 +0200 |
commit | 357da5bc324311eca1b394ade519f7a681fd483f (patch) | |
tree | 29f85906c6369876701c71de5705b01bbb063234 | |
parent | e6413b0a64cfb429d0e4e1034f84b2e4483c1013 (diff) | |
download | cygnal-357da5bc324311eca1b394ade519f7a681fd483f.tar.gz cygnal-357da5bc324311eca1b394ade519f7a681fd483f.tar.bz2 cygnal-357da5bc324311eca1b394ade519f7a681fd483f.zip |
math.h: Replace usage of INT_MAX with __INT_MAX__
Using INT_MAX requires to include limits.h on most targets.
Math.h must not rely on that.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | newlib/libc/include/math.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 80a8048ce..3725ac0b9 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -198,10 +198,10 @@ extern int isnan _PARAMS((double)); #define FP_NORMAL 4 #ifndef FP_ILOGB0 -# define FP_ILOGB0 (-INT_MAX) +# define FP_ILOGB0 (-__INT_MAX__) #endif #ifndef FP_ILOGBNAN -# define FP_ILOGBNAN INT_MAX +# define FP_ILOGBNAN __INT_MAX__ #endif #ifndef MATH_ERRNO |