[Libreoffice-commits] core.git: vcl/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Nov 4 05:14:54 PST 2015
vcl/source/filter/sgvspln.cxx | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 966fbbc78f0a154bb3f21506cf882b972c3652df
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Nov 4 14:13:22 2015 +0100
vcl: fix Android build
See <https://code.google.com/p/android/issues/detail?id=74835>,
Android's <cmath> currently does not provide std::copysign(), add a
forwarding stub till it gets fixed.
Change-Id: I49cc74ad1b61fed0460588150f21471d63e9069f
diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx
index dedd999..1d95a05 100644
--- a/vcl/source/filter/sgvspln.cxx
+++ b/vcl/source/filter/sgvspln.cxx
@@ -23,6 +23,17 @@
#include <sgvspln.hxx>
#include <cmath>
+#if defined(ANDROID)
+namespace std
+{
+template<typename T>
+T copysign(T x, T y)
+{
+ return copysign(x, y);
+}
+}
+#endif
+
extern "C" {
/*.pn 277 */
More information about the Libreoffice-commits
mailing list