Guard GCC-specific pragmas with "#ifdef EIGEN_COMP_GNUC"

This commit is contained in:
Rasmus Munk Larsen 2022-10-10 20:38:53 +00:00
parent 528b68674c
commit 5ceed0d57f

View File

@ -37,7 +37,7 @@
#include "../InternalHeaderCheck.h"
#ifdef EIGEN_COMP_GNUC
#if !EIGEN_COMP_LLVM
// These routines requires bit manipulation of the sign, which is not compatible
// with fastmath.
#pragma GCC push_options
@ -358,7 +358,7 @@ struct compute_inverse_size4<Architecture::Target, double, MatrixType, ResultTyp
} // namespace internal
} // namespace Eigen
#ifdef EIGEN_COMP_GNUC
#if !EIGEN_COMP_LLVM
#pragma GCC pop_options
#endif