summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-10-26 08:13:43 +0200
committerTor Lillqvist <tml@collabora.com>2015-10-26 08:13:43 +0200
commitcc906ec47eaaad247e8fbed5c9e6f3604a8b64c7 (patch)
treeb06bdb72eb380e138afa9dc82527dcaeae97f62e /sal
parentcf35dbd17abefd50cca2e9219e72787ccd2889f0 (diff)
The Android NDK for some reason don't have these math functions in std::
Not even if one includes <cmath> instead of <math.h>. So just use the C functions then. Change-Id: Ic8499bc7bcd5c84b6e52e1d5dc799f9f058db816
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/math.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 05a103320943..e0154f7ab2e3 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -972,12 +972,12 @@ double SAL_CALL rtl_math_approxValue( double fValue ) SAL_THROW_EXTERN_C()
double SAL_CALL rtl_math_expm1( double fValue ) SAL_THROW_EXTERN_C()
{
- return ::std::expm1(fValue);
+ return expm1(fValue);
}
double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C()
{
- return ::std::log1p(fValue);
+ return log1p(fValue);
}
double SAL_CALL rtl_math_atanh( double fValue ) SAL_THROW_EXTERN_C()
@@ -988,13 +988,13 @@ double SAL_CALL rtl_math_atanh( double fValue ) SAL_THROW_EXTERN_C()
/** Parent error function (erf) */
double SAL_CALL rtl_math_erf( double x ) SAL_THROW_EXTERN_C()
{
- return ::std::erf(x);
+ return erf(x);
}
/** Parent complementary error function (erfc) */
double SAL_CALL rtl_math_erfc( double x ) SAL_THROW_EXTERN_C()
{
- return ::std::erfc(x);
+ return erfc(x);
}
/** improved accuracy of asinh for |x| large and for x near zero