diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-17 02:00:12 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-17 02:00:12 +0000 |
commit | 203f6d93da2c5ab94ee73e608089f9de171b871c (patch) | |
tree | ab76d6e6c206405274b8f75dc738849e752a9640 | |
parent | 25ad1439e100f3ec8917b322789d838ae7b64e5e (diff) | |
download | postgresql-203f6d93da2c5ab94ee73e608089f9de171b871c.tar.gz postgresql-203f6d93da2c5ab94ee73e608089f9de171b871c.zip |
2. IRIX has both HAVE_FPCLASS and HAVE_FP_CLASS, therefore, in
backend/port/isinf.c it tries to compile two versions of
isinf().
From: Andrew Martin <martin@biochemistry.ucl.ac.uk>
-rw-r--r-- | src/backend/port/isinf.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/backend/port/isinf.c b/src/backend/port/isinf.c index 6e9d83e600b..d29363b4675 100644 --- a/src/backend/port/isinf.c +++ b/src/backend/port/isinf.c @@ -1,4 +1,4 @@ -/* $Id: isinf.c,v 1.2 1998/02/02 00:03:46 scrappy Exp $ */ +/* $Id: isinf.c,v 1.3 1998/02/17 02:00:12 scrappy Exp $ */ #include <math.h> #include "config.h" @@ -24,21 +24,21 @@ isinf(double d) } return (0); } -#endif +#else -#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D) +# if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D) # if HAVE_FP_CLASS_H -# include <fp_class.h> +# include <fp_class.h> # endif int isinf(x) double x; { -#if HAVE_FP_CLASS +# if HAVE_FP_CLASS int fpclass = fp_class(x); -#else +# else int fpclass = fp_class_d(x); -#endif +# endif if (fpclass == FP_POS_INF) return (1); @@ -46,6 +46,7 @@ double x; return (-1); return (0); } +# endif #endif #if defined(HAVE_CLASS) |