2008-07-06 17:31:31 +00:00
|
|
|
--- a/src/backend/utils/adt/float.c
|
|
|
|
+++ b/src/backend/utils/adt/float.c
|
2008-02-06 22:38:13 +00:00
|
|
|
@@ -71,7 +71,9 @@
|
2007-04-10 22:51:12 +00:00
|
|
|
static int float8_cmp_internal(float8 a, float8 b);
|
|
|
|
|
|
|
|
#ifndef HAVE_CBRT
|
|
|
|
-static double cbrt(double x);
|
|
|
|
+#undef cbrt
|
|
|
|
+#define cbrt(x) pg_cbrt(x)
|
|
|
|
+static double pg_cbrt(double x);
|
|
|
|
#endif /* HAVE_CBRT */
|
|
|
|
|
|
|
|
|
2008-02-06 22:38:13 +00:00
|
|
|
@@ -2733,7 +2735,7 @@
|
2007-04-10 22:51:12 +00:00
|
|
|
#ifndef HAVE_CBRT
|
|
|
|
|
|
|
|
static double
|
|
|
|
-cbrt(double x)
|
|
|
|
+pg_cbrt(double x)
|
|
|
|
{
|
|
|
|
int isneg = (x < 0.0);
|
|
|
|
double absx = fabs(x);
|