X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Ftypedefs.h;h=a40e6cfc246e81b10a69274c6282f01ea6659b3f;hb=0155dd1e97f323668442d3fc07b927e8f9004dbe;hp=6395bfe39ba2bd39b8c7181649f84acf0830ccf2;hpb=f1271614679843191bb247c0db2716acb5ac0e4b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/typedefs.h b/include/typedefs.h index 6395bfe39..a40e6cfc2 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -14,20 +14,17 @@ #ifndef __TYPEDEF_H__ #define __TYPEDEF_H__ -#ifndef WIN32 -/** User hash (POSIX systems with GCC) - */ -typedef nspace::hash_map, irc::StrHashComp> user_hash; -/** Channel hash (POSIX systems with GCC) - */ -typedef nspace::hash_map, irc::StrHashComp> chan_hash; +#if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED) + typedef nspace::hash_map > > user_hash; + typedef nspace::hash_map > > chan_hash; #else -/** User hash (windows systems with visual studio) - */ -typedef nspace::hash_map > > user_hash; -/** Channel hash (windows systems with visual studio) - */ -typedef nspace::hash_map > > chan_hash; + #ifdef HASHMAP_DEPRECATED + typedef nspace::hash_map user_hash; + typedef nspace::hash_map chan_hash; + #else + typedef nspace::hash_map, irc::StrHashComp> user_hash; + typedef nspace::hash_map, irc::StrHashComp> chan_hash; + #endif #endif /** Server name cache