From 7155b085f7701669ec87e411383ee6348d7e064b Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 May 2005 03:40:39 +0000 Subject: 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 --- src/hashcomp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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::operator()(const struct in_addr &a) const +#else size_t nspace::hash::operator()(const struct in_addr &a) const +#endif { size_t q; memcpy(&q,&a,sizeof(size_t)); return q; } +#ifdef GCC34 +size_t hash::operator()(const string &s) const +#else size_t nspace::hash::operator()(const string &s) const +#endif { char a[MAXBUF]; static struct hash strhash; -- cgit v1.2.3