From fc5f21903b7dde8c0681b25d7b1ef5aaf8b60a50 Mon Sep 17 00:00:00 2001 From: williami Date: Mon, 4 Jun 2012 10:21:16 -0500 Subject: [PATCH] Fixed RVCT 3.1 compiler errors. --- Eigen/Core | 2 +- Eigen/src/Core/PlainObjectBase.h | 2 +- Eigen/src/Core/util/Macros.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/Core b/Eigen/Core index 5d8034900..5e93d6b73 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -142,7 +142,7 @@ #endif // MSVC for windows mobile does not have the errno.h file -#if !(defined(_MSC_VER) && defined(_WIN32_WCE)) +#if !(defined(_MSC_VER) && defined(_WIN32_WCE)) && !defined(__ARMCC_VERSION) #define EIGEN_HAS_ERRNO #endif diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index baab56536..f9c432732 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -49,7 +49,7 @@ EIGEN_ALWAYS_INLINE void check_rows_cols_for_overflow(Index rows, Index cols) throw_std_bad_alloc(); } -template (Derived::IsVectorAtCompileTime)> struct conservative_resize_like_impl; +template struct conservative_resize_like_impl; template struct matrix_swap_impl; diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index cbea97c31..c39ad946e 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -268,7 +268,7 @@ * If we made alignment depend on whether or not EIGEN_VECTORIZE is defined, it would be impossible to link * vectorized and non-vectorized code. */ -#if (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__) +#if (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__) || (defined __ARMCC_VERSION) #define EIGEN_ALIGN_TO_BOUNDARY(n) __attribute__((aligned(n))) #elif (defined _MSC_VER) #define EIGEN_ALIGN_TO_BOUNDARY(n) __declspec(align(n))