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

Commit59156ad

Browse files
committed
Put back our old workaround for machines that declare cbrt() in math.h but
fail to provide the function itself. Not sure how we escaped testing anythinglater than 7.3 on such cases, but they still exist, as per André Volpato'sreport about AIX 5.3.
1 parentd7d7157 commit59156ad

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎src/backend/utils/adt/float.c

Lines changed: 10 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.160 2009/02/18 19:23:26 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.161 2009/03/04 22:08:20 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -71,6 +71,15 @@ static intfloat4_cmp_internal(float4 a, float4 b);
7171
staticintfloat8_cmp_internal(float8a,float8b);
7272

7373
#ifndefHAVE_CBRT
74+
/*
75+
* Some machines (in particular, some versions of AIX) have an extern
76+
* declaration for cbrt() in <math.h> but fail to provide the actual
77+
* function, which causes configure to not set HAVE_CBRT. Furthermore,
78+
* their compilers spit up at the mismatch between extern declaration
79+
* and static definition. We work around that here by the expedient
80+
* of a #define to make the actual name of the static function different.
81+
*/
82+
#definecbrt my_cbrt
7483
staticdoublecbrt(doublex);
7584
#endif/* HAVE_CBRT */
7685

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp