diff options
| author | 2005-03-25 06:01:34 +0000 | |
|---|---|---|
| committer | 2005-03-25 06:01:34 +0000 | |
| commit | e2359d9a4ed9d27139346aa045c784db04d15776 (patch) | |
| tree | b9b5a3a998e0e6ab2a4559b069fa29ab58612bb8 /src/xline.cpp | |
| parent | Added detection for gcc 3.4... where they changed the namespaces again. (diff) | |
Fixes for GCC3.4 and namespaces (must rerun configure!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@902 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 064903ba1..5559390e7 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -105,7 +105,11 @@ extern FILE *log_file; namespace nspace { +#ifdef GCC34 + template<> struct hash<in_addr> +#else template<> struct nspace::hash<in_addr> +#endif { size_t operator()(const struct in_addr &a) const { @@ -114,8 +118,11 @@ namespace nspace return q; } }; - +#ifdef GCC34 + template<> struct hash<string> +#else template<> struct nspace::hash<string> +#endif { size_t operator()(const string &s) const { |
