From 3bdcdb94fa1ce2cd079c579d769094096d9b4cec Mon Sep 17 00:00:00 2001 From: peabody124 Date: Mon, 28 Mar 2011 10:41:10 +0000 Subject: [PATCH] Make the Eigen library compile on OSX again git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3085 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/openpilotgcs/src/libs/eigen/Eigen/align-function.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/libs/eigen/Eigen/align-function.h b/ground/openpilotgcs/src/libs/eigen/Eigen/align-function.h index 69a9bcd50..160fdc33b 100644 --- a/ground/openpilotgcs/src/libs/eigen/Eigen/align-function.h +++ b/ground/openpilotgcs/src/libs/eigen/Eigen/align-function.h @@ -14,7 +14,12 @@ # else # define FORCE_ALIGN_FUNC # endif -#error Unknown compiler. You may need to provide a definition of FORCE_ALIGN_FUNC +#else +# ifdef __MACOSX__ +# define FORCE_ALIGN_FUNC +# else +# error Unknown compiler. You may need to provide a definition of FORCE_ALIGN_FUNC +# endif #endif #endif // !defined OP_EIGEN_ALIGN_FUNCTION_H