summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-04 14:13:22 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-04 14:14:27 +0100
commit966fbbc78f0a154bb3f21506cf882b972c3652df (patch)
tree02c508dc6030f39c89169d57a9e16386076fd0e5 /vcl
parenta520ea54f40f8d39206e69292f2aa72080a69d3b (diff)
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
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/sgvspln.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx
index dedd999bab18..1d95a05c2b62 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 */