]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Making sure this is compatible with GCC3.4/4.x
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 15 May 2005 03:40:39 +0000 (03:40 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 15 May 2005 03:40:39 +0000 (03:40 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1386 e03df62e-2008-0410-955e-edbf42e46eb7

src/hashcomp.cpp

index ea845489f1105b5c01c6ca08a7d6ede0e7ea6a78..e8ab857f6ca67186e98de7b5dc99967ffb93be17 100644 (file)
 
 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;