diff options
author | 2013-01-23 20:51:38 +0100 | |
---|---|---|
committer | 2013-01-23 20:51:38 +0100 | |
commit | c22f7cef83cedb1ed445bb309cc07db58303f4cb (patch) | |
tree | a02bfa6133b9dad5d0108b17ca8c0973acff051d /Eigen/src/Core/util/Macros.h | |
parent | 73026eab4d7df4e61f954c00f5793bc077fd3f2f (diff) |
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))
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
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. |