From c22f7cef83cedb1ed445bb309cc07db58303f4cb Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 23 Jan 2013 20:51:38 +0100 Subject: Workaround "error: floating-point literal cannot appear in a constant-expression" in mpreal.h when compiling with predantic. (I really don't know how to properly fix this)) --- Eigen/src/Core/util/Macros.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Eigen/src/Core/util/Macros.h') diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 1bbd24b8b..933a34c9d 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -145,6 +145,12 @@ #define EIGEN_DONT_INLINE #endif +#if (defined __GNUC__) +#define EIGEN_PERMISSIVE_EXPR __extension__ +#else +#define EIGEN_PERMISSIVE_EXPR +#endif + // this macro allows to get rid of linking errors about multiply defined functions. // - static is not very good because it prevents definitions from different object files to be merged. // So static causes the resulting linked executable to be bloated with multiple copies of the same function. -- cgit v1.2.3