diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-04-20 12:04:12 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-04-20 12:04:12 -0700 |
commit | e9e75e50bc25e67af22dd88b39b12217a553d5cb (patch) | |
tree | d16a152c375232039ce2243145c57d3bb4aed525 /include/inspircd.h | |
parent | 326852f7dd3fd6989d37ad2991f8a174b3a86b65 (diff) | |
parent | 0d3a6719b8d924ea663f95e3e2fb834cbd80c6a5 (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.h | 4 |
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> |