blob: d640531475205859ffd6688d131e011b18bfd1f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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
|