From e56613b0035f2e9acf912af4ab68ad410100e1ea Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 12 Jun 2008 17:40:40 +0000 Subject: This should do the job, dont quote me on it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9892 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hash_map.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/include/hash_map.h b/include/hash_map.h index b922f6173..345420fc2 100644 --- a/include/hash_map.h +++ b/include/hash_map.h @@ -18,14 +18,23 @@ * as it is not standard. */ #ifndef WIN32 -#include -/** Oddball linux namespace for hash_map */ -#define nspace __gnu_cxx + #ifndef HASHMAP_DEPRECATED + #include + /** Oddball linux namespace for hash_map */ + #define nspace __gnu_cxx + #else + #include + #define hash_map unordered_map + #define nspace std::tr1 + #endif #else -#include -#define nspace stdext -/** Oddball windows namespace for hash_map */ -using stdext::hash_map; + #include + #define nspace stdext + /** Oddball windows namespace for hash_map */ + using stdext::hash_map; #endif + + #endif + -- cgit v1.2.3