summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-04-20 12:04:12 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-04-20 12:04:12 -0700
commite9e75e50bc25e67af22dd88b39b12217a553d5cb (patch)
treed16a152c375232039ce2243145c57d3bb4aed525 /include/inspircd.h
parent326852f7dd3fd6989d37ad2991f8a174b3a86b65 (diff)
parent0d3a6719b8d924ea663f95e3e2fb834cbd80c6a5 (diff)
Merge pull request #495 from SaberUK/master+fix-libcpp
Fix building with libc++.
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>