diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 11:04:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 11:04:03 +0000 |
commit | cce3669a3a6c2011f202795c6333db77009cedd7 (patch) | |
tree | a84af2c88b20c36d110d8d7e5c915d48e83174b2 | |
parent | 69e5a4bae9019c1d802a72bca17f8132a42334ed (diff) |
Make bancache compile on windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8490 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/bancache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bancache.h b/include/bancache.h index a96b194f9..19fc0d952 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -35,7 +35,11 @@ class CoreExport BanCacheHit : public classbase }; // must be defined after class BanCacheHit. +#ifndef WIN32 typedef nspace::hash_map<std::string, BanCacheHit *, nspace::hash<std::string> > BanCacheHash; +#else +typedef nspace::hash_map<std::string, BanCacheHit*, nspace::hash_compare<string, less<string> > > BanCacheHash; +#endif class CoreExport BanCacheManager : public classbase { |