X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Ftypedefs.h;h=ca3efcc7018405dcc2f59f0d088482089eed9c03;hb=c71db5cbdece1b5ce878c68f162acb52eff8becd;hp=2a98da4aec4ccb6de27003cc8b57a903aa195dd6;hpb=dd98d56cabcd08a3d5207454e002b187af98d28a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/typedefs.h b/include/typedefs.h index 2a98da4ae..ca3efcc70 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. @@ -15,19 +15,18 @@ #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; + + #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 #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; + + typedef nspace::hash_map > > user_hash; + typedef nspace::hash_map > > chan_hash; #endif /** Server name cache