~ chicken-core (chicken-5) 14ccde8457050bf0e9740c1807ee994634c92876
commit 14ccde8457050bf0e9740c1807ee994634c92876
Author: Peter Bex <peter@more-magic.net>
AuthorDate: Sun Mar 12 20:18:02 2017 +0100
Commit: Evan Hanson <evhan@foldling.org>
CommitDate: Fri Mar 17 12:03:30 2017 +1300
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().
Signed-off-by: Evan Hanson <evhan@foldling.org>
diff --git a/chicken.h b/chicken.h
index b53fe44c..0753629c 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
Trap