diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 03:40:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 03:40:39 +0000 |
commit | 7155b085f7701669ec87e411383ee6348d7e064b (patch) | |
tree | ab7fcb654df07a35b7e63e987b561bc57c84e6a1 /src/hashcomp.cpp | |
parent | 666d9329785b40f2416395fa79fefb12a9d74ac6 (diff) |
Making sure this is compatible with GCC3.4/4.x
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1386 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index ea845489f..e8ab857f6 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -16,14 +16,22 @@ using namespace std; +#ifdef GCC34 +size_t hash<in_addr>::operator()(const struct in_addr &a) const +#else size_t nspace::hash<in_addr>::operator()(const struct in_addr &a) const +#endif { size_t q; memcpy(&q,&a,sizeof(size_t)); return q; } +#ifdef GCC34 +size_t hash<string>::operator()(const string &s) const +#else size_t nspace::hash<string>::operator()(const string &s) const +#endif { char a[MAXBUF]; static struct hash<const char *> strhash; |