From 357da5bc324311eca1b394ade519f7a681fd483f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 31 May 2016 16:30:46 +0200 Subject: [PATCH] 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 --- newlib/libc/include/math.h | 4 ++-- 1 file 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