From 8cae733fcd77879a14776b58569a0e70f92785da Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 12 Feb 2009 19:33:50 +0000 Subject: [PATCH] fix a conflict for isinf defined in missing_math.h --- src/maths/misc/isinf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/maths/misc/isinf.c b/src/maths/misc/isinf.c index 2bc497885..8a8091b72 100644 --- a/src/maths/misc/isinf.c +++ b/src/maths/misc/isinf.c @@ -2,11 +2,13 @@ #if !HAVE_DECL_ISINF #ifndef HAVE_ISINF -#ifdef HAVE_IEEEFP_H +#if defined(HAVE_FINITE) + +/* not the best replacement - see missing_math.h */ int isinf(double x) { return !finite(x) && x==x; } -#else /* HAVE_IEEEFP_H */ +#else /* HAVE_FINITE */ /* this is really ugly - but it is a emergency case */ @@ -24,7 +26,7 @@ isinf (const double x) return 0; } -#endif /* HAVE_IEEEFP_H */ +#endif /* HAVE_FINITE */ #else /* HAVE_ISINF */ int Dummy_Symbol_5; #endif /* HAVE_ISINF */