86565f3658
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11727 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
449 B
Diff
23 lines
449 B
Diff
--- a/src/backend/utils/adt/float.c
|
|
+++ b/src/backend/utils/adt/float.c
|
|
@@ -71,7 +71,9 @@
|
|
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 */
|
|
|
|
|
|
@@ -2733,7 +2735,7 @@
|
|
#ifndef HAVE_CBRT
|
|
|
|
static double
|
|
-cbrt(double x)
|
|
+pg_cbrt(double x)
|
|
{
|
|
int isneg = (x < 0.0);
|
|
double absx = fabs(x);
|