From 3cd16475db5278fc313dfdf5663291b633f305fa Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 2 Sep 2004 17:12:50 +0000 Subject: [PATCH] Cope with recent HPUX versions providing isfinite() instead of finite(). --- src/backend/utils/adt/float.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c index f4ceb26248..ccee67319c 100644 --- a/src/backend/utils/adt/float.c +++ b/src/backend/utils/adt/float.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.109 2004/08/29 05:06:49 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.110 2004/09/02 17:12:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -81,6 +81,12 @@ #define SHRT_MIN (-32768) #endif +/* Recent HPUXen have isfinite() macro in place of more standard finite() */ +#if !defined(HAVE_FINITE) && defined(isfinite) +#define finite(x) isfinite(x) +#define HAVE_FINITE 1 +#endif + /* not sure what the following should be, but better to make it over-sufficient */ #define MAXFLOATWIDTH 64 #define MAXDOUBLEWIDTH 128