diff options
-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; |