From 8e1df5b08280f07a8814719fdbbeaf6fababd2dc Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Thu, 28 May 2020 05:50:56 -0700 Subject: Fix incorrect usage of `if defined(EIGEN_ARCH_PPC)` => `if EIGEN_ARCH_PPC` This PR tries to fix an incorrect usage of `if defined(EIGEN_ARCH_PPC)` in `Eigen/Core` header. In `Eigen/src/Core/util/Macros.h`, EIGEN_ARCH_PPC was explicitly defined as either 0 or 1. As a result `if defined(EIGEN_ARCH_PPC)` will always be true. This causes issues when building on non PPC platform and `MatrixProduct.h` is not available. This fix changes `if defined(EIGEN_ARCH_PPC)` => `if EIGEN_ARCH_PPC`. Signed-off-by: Yong Tang --- Eigen/Core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/Core b/Eigen/Core index 2594a7dd9..eafaea4f2 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -330,7 +330,7 @@ using std::ptrdiff_t; #include "src/Core/CoreIterators.h" #include "src/Core/ConditionEstimator.h" -#if defined(EIGEN_ARCH_PPC) +#if EIGEN_ARCH_PPC #include "src/Core/arch/AltiVec/MatrixProduct.h" #endif -- cgit v1.2.3