summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 14:53:02 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-12 22:06:13 -0400
commit742a34e9b69621f00a381c46cc2b7e0c64412b7f (patch)
tree170a8455ffbde0c89554f579c0e452cc5fe1c89e /drawinglayer
parent8c35a5e785169cb5f7a092f4223dc86faff9a9fb (diff)
drawinglayer: work around broken Android toolchain
Change-Id: I8679f44663aa81e04684751847cab4f06df3a71e (cherry picked from commit ce12a5021a080cc1781e0e0256af5e0085e11ef2)
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/borderlineprimitive2d.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
index 30e7dcbacba6..61400dae9c3b 100644
--- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
@@ -39,6 +39,17 @@ T round(T x)
}
#endif
+#if defined(ANDROID)
+namespace std
+{
+template<typename T>
+T round(T x)
+{
+ return round(x);
+}
+}
+#endif
+
namespace drawinglayer {
namespace {