From 42e2578ef9fcbb62ad6e07933ccf531f6f7cd1b3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 19 Aug 2011 14:18:05 +0200 Subject: the min/max macros to detect unprotected min/max were undefined by some std header, so let's declare them after and do the respective fixes ;) --- test/sparse.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/sparse.h') diff --git a/test/sparse.h b/test/sparse.h index 9944a2934..81ce82e16 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -29,6 +29,15 @@ #include "main.h" #if EIGEN_GNUC_AT_LEAST(4,0) && !defined __ICC && !defined(__clang__) + +#ifdef min +#undef min +#endif + +#ifdef max +#undef max +#endif + #include #define EIGEN_UNORDERED_MAP_SUPPORT namespace std { -- cgit v1.2.3