From 6a722602e637cc248265c13735461bd6d7cb5ced Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 23 Jan 2009 12:26:32 +0000 Subject: fix a few remaining warnings and fix commainitializer unit test with MSVC --- test/sparse.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'test/sparse.h') diff --git a/test/sparse.h b/test/sparse.h index d18217e0a..128b129e8 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -24,15 +24,20 @@ #ifndef EIGEN_TESTSPARSE_H -#ifdef __GNUC__ -#include +#include "main.h" + +#if EIGEN_GNUC_AT_LEAST(4,0) +#include +#define EIGEN_UNORDERED_MAP_SUPPORT +namespace std { + using std::tr1::unordered_map; +} #endif #ifdef EIGEN_GOOGLEHASH_SUPPORT #include #endif -#include "main.h" #include #include #include -- cgit v1.2.3