[Libreoffice-commits] core.git: sc/source
Miklos Vajna
vmiklos at collabora.co.uk
Tue Aug 9 08:36:58 UTC 2016
sc/source/filter/excel/xetable.cxx | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 10652c109e732584e43b81ecbd6f97277edb5c7b
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Aug 9 10:35:41 2016 +0200
sc: fix Android build
trunc() is missing in the std namespace on the broken Android toolchain,
work it around.
Change-Id: I9715bce8e888a6f35d06753e40ab34ac43642acc
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index 9cc6552..1e1b633 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;
More information about the Libreoffice-commits
mailing list