diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-08-19 14:18:05 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-08-19 14:18:05 +0200 |
commit | 42e2578ef9fcbb62ad6e07933ccf531f6f7cd1b3 (patch) | |
tree | 90cef174284cad35f0d13d4b991db83335554caf /test/main.h | |
parent | 5734ee6df42991e59609ffd26aaeb3c7aacd61e2 (diff) |
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 ;)
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/main.h b/test/main.h index 99049223c..2068713b3 100644 --- a/test/main.h +++ b/test/main.h @@ -23,9 +23,6 @@ // License and a copy of the GNU General Public License along with // Eigen. If not, see <http://www.gnu.org/licenses/>. -#define min(A,B) please_protect_your_min_with_parentheses -#define max(A,B) please_protect_your_max_with_parentheses - #include <cstdlib> #include <cerrno> #include <ctime> @@ -33,6 +30,15 @@ #include <string> #include <vector> #include <typeinfo> +#include <limits> +#include <algorithm> +#include <sstream> +#include <complex> +#include <deque> +#include <queue> + +#define min(A,B) please_protect_your_min_with_parentheses +#define max(A,B) please_protect_your_max_with_parentheses // the following file is automatically generated by cmake #include "split_test_helper.h" |