summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/bancache.h4
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
{