Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cd1647

Browse files
committed
Cope with recent HPUX versions providing isfinite() instead of finite().
1 parent5042985 commit3cd1647

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
#defineSHRT_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+
#definefinite(x) isfinite(x)
87+
#defineHAVE_FINITE 1
88+
#endif
89+
8490
/* not sure what the following should be, but better to make it over-sufficient */
8591
#defineMAXFLOATWIDTH64
8692
#defineMAXDOUBLEWIDTH128

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp