mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Added generation of build_git_version.h Added separate src/lib/eigen-3.2 dir for qurt (new submodule) Added patching of eigen-3.2 for qurt (compiler has issue with Complex) Signed-off-by: Mark Charlebois <charlebm@gmail.com>
18 lines
672 B
Diff
18 lines
672 B
Diff
This patch is required for QuRT. complex.h defines "I" and it replaces "I" in the
|
|
enum definition without this patch creating an error.
|
|
|
|
diff --git a/Eigen/src/Core/SolveTriangular.h b/Eigen/src/Core/SolveTriangular.h
|
|
index ef17f28..1116270 100644
|
|
--- a/Eigen/src/Core/SolveTriangular.h
|
|
+++ b/Eigen/src/Core/SolveTriangular.h
|
|
@@ -112,6 +112,9 @@ template<typename Lhs, typename Rhs, int Mode, int Index, int Size,
|
|
bool Stop = Index==Size>
|
|
struct triangular_solver_unroller;
|
|
|
|
+#ifdef __PX4_QURT
|
|
+#undef I
|
|
+#endif
|
|
template<typename Lhs, typename Rhs, int Mode, int Index, int Size>
|
|
struct triangular_solver_unroller<Lhs,Rhs,Mode,Index,Size,false> {
|
|
enum {
|