libzmf: blind fix hack attempt to work around buggy android headers
Change-Id: Ie7b265e909389ae80d8ced3d803d7e355cda2211
This commit is contained in:
13
external/libzmf/0001-add-missing-include.patch.1
vendored
13
external/libzmf/0001-add-missing-include.patch.1
vendored
@@ -12,11 +12,22 @@ diff --git a/src/lib/ZMFCollector.cpp b/src/lib/ZMFCollector.cpp
|
|||||||
index ded93c7..7e024b3 100644
|
index ded93c7..7e024b3 100644
|
||||||
--- a/src/lib/ZMFCollector.cpp
|
--- a/src/lib/ZMFCollector.cpp
|
||||||
+++ b/src/lib/ZMFCollector.cpp
|
+++ b/src/lib/ZMFCollector.cpp
|
||||||
@@ -9,6 +9,8 @@
|
@@ -9,6 +9,19 @@
|
||||||
|
|
||||||
#include "ZMFCollector.h"
|
#include "ZMFCollector.h"
|
||||||
|
|
||||||
+#include <cmath>
|
+#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>
|
#include <boost/math/constants/constants.hpp>
|
||||||
#include <boost/variant.hpp>
|
#include <boost/variant.hpp>
|
||||||
|
Reference in New Issue
Block a user