diff options
author | Yong Tang <yong.tang.github@outlook.com> | 2020-05-28 05:50:56 -0700 |
---|---|---|
committer | Yong Tang <yong.tang.github@outlook.com> | 2020-05-28 05:53:44 -0700 |
commit | 8e1df5b08280f07a8814719fdbbeaf6fababd2dc (patch) | |
tree | b7d8e618a4fd7d8030c9b71dc6ea5c15365a9206 | |
parent | 4e7046063babd95e100ab202d52ca5776997c80c (diff) |
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 <yong.tang.github@outlook.com>
-rw-r--r-- | Eigen/Core | 2 |
1 files changed, 1 insertions, 1 deletions
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 |