|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * 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 $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -71,6 +71,15 @@ static intfloat4_cmp_internal(float4 a, float4 b);
|
71 | 71 | staticintfloat8_cmp_internal(float8a,float8b);
|
72 | 72 |
|
73 | 73 | #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 |
74 | 83 | staticdoublecbrt(doublex);
|
75 | 84 | #endif/* HAVE_CBRT */
|
76 | 85 |
|
|