diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-07-18 17:38:25 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-07-18 17:38:25 +0000 |
commit | d0634aca3999e6ad7642a907bff24ff03f3eda9f (patch) | |
tree | 5e77a145b51bcd64769f48394b05f7ae02b6d0e0 /src/backend/port/isinf.c | |
parent | ef9699d6dab9716573012cea1bf220b912bac3cd (diff) | |
download | postgresql-d0634aca3999e6ad7642a907bff24ff03f3eda9f.tar.gz postgresql-d0634aca3999e6ad7642a907bff24ff03f3eda9f.zip |
configure cleanup
Diffstat (limited to 'src/backend/port/isinf.c')
-rw-r--r-- | src/backend/port/isinf.c | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/src/backend/port/isinf.c b/src/backend/port/isinf.c index 7cf404afc90..1fa31f82634 100644 --- a/src/backend/port/isinf.c +++ b/src/backend/port/isinf.c @@ -1,13 +1,18 @@ -/* $Id: isinf.c,v 1.9 1999/07/17 04:00:29 momjian Exp $ */ +/* $Id: isinf.c,v 1.10 1999/07/18 17:38:23 momjian Exp $ */ #include <math.h> #include "config.h" -#if HAVE_FPCLASS +#ifdef NOT_USED + #if HAVE_IEEEFP_H #include <ieeefp.h> #endif +#if HAVE_FP_CLASS_H +#include <fp_class.h> +#endif + int isinf(double d) { @@ -24,12 +29,6 @@ isinf(double d) return 0; } -#else - -#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D) -#if HAVE_FP_CLASS_H -#include <fp_class.h> -#endif int isinf(x) double x; @@ -50,19 +49,3 @@ double x; } #endif -#endif - -#if defined(HAVE_CLASS) -int -isinf(double x) -{ - int fpclass = class(x); - - if (fpclass == FP_PLUS_INF) - return 1; - if (fpclass == FP_MINUS_INF) - return -1; - return 0; -} - -#endif |