Commit c30b8f9d authored by Bruce Momjian's avatar Bruce Momjian

AIX float fix.

parent 5e2c0a87
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.23 1997/09/24 15:40:59 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.24 1997/09/26 20:32:02 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1518,14 +1518,31 @@ double x; ...@@ -1518,14 +1518,31 @@ double x;
#ifndef HAVE_ISINF #ifndef HAVE_ISINF
#if defined(aix) #if defined(aix)
#ifdef CLASS_CONFLICT #ifdef CLASS_CONFLICT
/* we want the math symbol */ /* we want the math symbol */
#undef class #undef class
#endif /* CLASS_CONFICT */ #endif /* CLASS_CONFICT */
/* The gcc doesn't support isinf() (without libgcc?) so we
* have to do it - Gerhard Reitofer
*/
#ifdef __GNUC__
static int static int
isinf(x) isinf(double x)
double x; {
if (x == HUGE_VAL)
return(1);
if (x == -HUGE_VAL)
return(-1);
return(0);
}
#else /* __GNUC__ */
static int
isinf(double x)
{ {
int fpclass = class(x); int fpclass = class(x);
...@@ -1536,6 +1553,8 @@ double x; ...@@ -1536,6 +1553,8 @@ double x;
return (0); return (0);
} }
#endif /* __GNUC__ */
#endif /* aix */ #endif /* aix */
#if defined(ultrix4) #if defined(ultrix4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment