From 9c8e252f6ca12fd0743b487e32f380b2d567259f Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 12 Mar 2017 20:18:02 +0100 Subject: [PATCH 1/3] Remove special case for math.h definitions on Solaris. With revision cce929c2 we introduced __C99FEATURES__, which "unlocks" all the definitions from math.h, including isinf() and isnan(). --- chicken.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/chicken.h b/chicken.h index b53fe44..0753629 100644 --- a/chicken.h +++ b/chicken.h @@ -344,19 +344,6 @@ void *alloca (); #define ___s64 C_s64 -#if defined(C_SOLARIS) && !defined(isinf) -# define isinf(x) \ - (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ - : sizeof (x) == sizeof (double) ? isinf_d (x) \ - : isinf_f (x)) -static inline int isinf_f (float x) -{ return !isnan (x) && isnan (x - x); } -static inline int isinf_d (double x) -{ return !isnan (x) && isnan (x - x); } -static inline int isinf_ld (long double x) -{ return !isnan (x) && isnan (x - x); } -#endif - /* Mingw's isnormal() is broken on 32bit; use GCC's builtin (see #1062) */ #ifdef __MINGW32__ # undef isnormal -- 2.1.4