office-gobmx/external/libzmf/0001-add-missing-include.patch.1
David Tardon a013b85055 upload libzmf 0.0.1
Change-Id: I706d454226d17fe1386c876782f6ad2843f17197
Reviewed-on: https://gerrit.libreoffice.org/28718
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2016-09-09 05:29:27 +00:00

37 lines
721 B
Groff

From cec69125160906f147398c347860fee0e6aab8bf Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Fri, 24 Jun 2016 09:26:21 +0200
Subject: [PATCH] add missing include
Change-Id: Ia21873123179902b2c3cad95b39db7d15c5b388a
---
src/lib/ZMFTypes.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lib/ZMFTypes.cpp b/src/lib/ZMFTypes.cpp
index ded93c7..7e024b3 100644
--- a/src/lib/ZMFTypes.cpp
+++ b/src/lib/ZMFTypes.cpp
@@ -9,6 +9,19 @@
#include "ZMFTypes.h"
+#include <cmath>
+
+#if defined(__ANDROID__)
+namespace std
+{
+template<typename T>
+T hypot(T x, T y)
+{
+ return ::hypot(x, y);
+}
+}
+#endif
+
#include <boost/math/constants/constants.hpp>
namespace libzmf
--
2.7.4