Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3cd1647

Browse files
committed
Cope with recent HPUX versions providing isfinite() instead of finite().
1 parent 5042985 commit 3cd1647

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/utils/adt/float.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.109 2004/08/29 05:06:49 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.110 2004/09/02 17:12:50 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -81,6 +81,12 @@
8181
#define SHRT_MIN (-32768)
8282
#endif
8383

84+
/* Recent HPUXen have isfinite() macro in place of more standard finite() */
85+
#if !defined(HAVE_FINITE) && defined(isfinite)
86+
#define finite(x) isfinite(x)
87+
#define HAVE_FINITE 1
88+
#endif
89+
8490
/* not sure what the following should be, but better to make it over-sufficient */
8591
#define MAXFLOATWIDTH 64
8692
#define MAXDOUBLEWIDTH 128

0 commit comments

Comments
 (0)