summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-09 10:35:41 +0200
committerAndras Timar <andras.timar@collabora.com>2017-02-08 11:56:05 +0100
commit05a248f18649f11170972cd395e48a4dc3497005 (patch)
treea2780c882ef076c5f578fcd3a5259d8be87eaa36 /sc
parented73694e8ecb03f1ef23223f341071dfca83bbbd (diff)
sc: fix Android build
trunc() is missing in the std namespace on the broken Android toolchain, work it around. Change-Id: I9715bce8e888a6f35d06753e40ab34ac43642acc (cherry picked from commit 10652c109e732584e43b81ecbd6f97277edb5c7b) Reviewed-on: https://gerrit.libreoffice.org/31661 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit b87da122f34245dfc573a7c0aaf1ed00051fead5)
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xetable.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index cd6eda4d4859..6429d1d9db28 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -37,6 +37,17 @@
#include <thread>
#include <comphelper/threadpool.hxx>
+#if defined(ANDROID)
+namespace std
+{
+template<typename T>
+T trunc(T x)
+{
+ return ::trunc(x);
+}
+}
+#endif
+
using namespace ::oox;
namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;