summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 14:53:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 14:53:14 +0200
commitce12a5021a080cc1781e0e0256af5e0085e11ef2 (patch)
tree1017de85ef6fe695b3368485cb478b8fc93eecc7
parent7a06ef161cc27a3d1bcc8b970928f776500c267e (diff)
drawinglayer: work around broken Android toolchain
Change-Id: I8679f44663aa81e04684751847cab4f06df3a71e
-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 97ea16406604..f467aee1e53b 100644
--- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
@@ -30,6 +30,17 @@
#include <cmath>
#include <numeric>
+#if defined(ANDROID)
+namespace std
+{
+template<typename T>
+T round(T x)
+{
+ return round(x);
+}
+}
+#endif
+
namespace drawinglayer {
namespace {