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>
This commit is contained in:
Corinna Vinschen 2016-05-31 16:30:46 +02:00
parent e6413b0a64
commit 357da5bc32
1 changed files with 2 additions and 2 deletions

View File

@ -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