summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 929674eb3..25ef288aa 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -66,9 +66,11 @@
#include <unistd.h>
#endif
-#ifdef _WIN32
+#if defined _LIBCPP_VERSION || defined _WIN32
+# define TR1NS std
# include <unordered_map>
#else
+# define TR1NS std::tr1
# include <tr1/unordered_map>
#endif
#include <sstream>