summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-27 15:54:21 -0400
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commitb319fb089c144312ab9141d6f6469d50d9d7a1ea (patch)
treeb6da2ec3a23ff7f2da9ae6ce35d591faa6f57d72 /include/hashcomp.h
parent17196887ad1e6f9886c6cd3109bd8ede16ae7343 (diff)
Fix compile warnings and errors found by clang
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index 38c0e3833..540f1dbe4 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -13,10 +13,12 @@
#include <string>
#include <locale>
-#ifndef _WIN32
-#include <tr1/unordered_map>
-#else
+#if defined _LIBCPP_VERSION || defined _WIN32
#include <unordered_map>
+#define TR1NS std
+#else
+#include <tr1/unordered_map>
+#define TR1NS std::tr1
#endif
#include "services.h"