summaryrefslogtreecommitdiff
path: root/include/dns.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-15 11:32:49 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-15 11:32:49 +0000
commit01ce98f2746be837a64f5f9ed2c36eeaabae7462 (patch)
tree83e0a640f913a78861cc321bc9aaf67089b2b305 /include/dns.h
parent74a515a72f08fc85d8d59cb7207fba9ece51215f (diff)
win: Last part of support required for VS2010:
NEEDS COMPILE TESTING ON: gcc3 (if possible), gcc4, vs2008. - Check for vs2010 in hash_map.h - use unordered_map if it exists - change all map creations to: #if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED) // old windows crap #else #if HASHMAP_DEPRECATED // tr1/gcc crap #endif #endif git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11524 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/dns.h')
-rw-r--r--include/dns.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/dns.h b/include/dns.h
index 4f577366b..fa4295296 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -103,10 +103,10 @@ class CoreExport CachedQuery : public classbase
/** DNS cache information. Holds IPs mapped to hostnames, and hostnames mapped to IPs.
*/
-#ifndef WIN32
-typedef nspace::hash_map<irc::string, CachedQuery, nspace::hash<irc::string> > dnscache;
-#else
+#if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED)
typedef nspace::hash_map<irc::string, CachedQuery, nspace::hash_compare<irc::string> > dnscache;
+#else
+typedef nspace::hash_map<irc::string, CachedQuery, nspace::hash<irc::string> > dnscache;
#endif
/**