X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Ftypedefs.h;h=fa4477f84918919ede712f91b8a8521f613f8493;hb=74066e0f563ef630e432d3bbb10544318b70ade3;hp=77c2b6559e5f868cf75aaaeb502979201fbd6102;hpb=22643437145146fdc51ae63bb740f0af5e32bc0a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/typedefs.h b/include/typedefs.h index 77c2b6559..fa4477f84 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 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,38 +14,19 @@ #ifndef __TYPEDEF_H__ #define __TYPEDEF_H__ - -#include -#include "inspircd_config.h" -#include "hash_map.h" -#include "users.h" -#include "channels.h" -#include "hashcomp.h" -#include "inspstring.h" -#include "ctables.h" -#include "modules.h" -#include "globals.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 - */ -typedef std::vector servernamelist; - /** A cached text file stored line by line. */ typedef std::deque file_cache;