[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Aug 17 12:05:36 UTC 2016


 writerfilter/source/rtftok/rtfsdrimport.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 0cb7d76bc5552245642ba423a87831cd9e0b2b92
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Aug 17 14:04:33 2016 +0200

    writerfilter: fix Android build
    
    lround() is missing in the std namespace on the broken Android toolchain, work
    it around.
    
    Change-Id: Ib53ace52c3a7c345de1326e3566a279f2a3f1bce

diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index dd700c9..c04014f 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -41,6 +41,17 @@
 
 using namespace com::sun::star;
 
+#if defined(ANDROID)
+namespace std
+{
+template<typename T>
+T lround(T x)
+{
+    return ::lround(x);
+}
+}
+#endif
+
 namespace writerfilter
 {
 namespace rtftok


More information about the Libreoffice-commits mailing list