From 16d6068bfd3579531501cde118ddcdd5ee1786b9 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Fri, 24 Apr 2015 10:52:07 -0700 Subject: [PATCH] QuRT: patch for eigen This patch is required for QuRT. comlpex.h defines "I" and it replaces "I" in the enum definition without this patch creating an error. Signed-off-by: Mark Charlebois --- makefiles/qurt/qurt_eigen.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 makefiles/qurt/qurt_eigen.patch diff --git a/makefiles/qurt/qurt_eigen.patch b/makefiles/qurt/qurt_eigen.patch new file mode 100644 index 0000000000..d5cec3141a --- /dev/null +++ b/makefiles/qurt/qurt_eigen.patch @@ -0,0 +1,17 @@ +This patch is required for QuRT. compex.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 + struct triangular_solver_unroller; + ++#ifdef __PX4_QURT ++#undef I ++#endif + template + struct triangular_solver_unroller { + enum {