From: Bert Hubert Date: Mon, 13 Mar 2006 19:38:15 +0000 (+0000) Subject: work around a g++ 4.1 profiling bug wrt anonymous namespaces X-Git-Tag: pdns-2.9.20~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac6a3a3ae2c5b6bf97093f124bc834a73d1dc38;p=thirdparty%2Fpdns.git work around a g++ 4.1 profiling bug wrt anonymous namespaces git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@579 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/base64.cc b/pdns/base64.cc index 812137f7d0..050939c172 100644 --- a/pdns/base64.cc +++ b/pdns/base64.cc @@ -1,6 +1,6 @@ #include "base64.hh" -namespace { +namespace anonpdns { char B64Decode1(char cInChar) { // The incoming character will be A-Z, a-z, 0-9, +, /, or =. @@ -90,6 +90,7 @@ inline char B64Encode1(unsigned char uc) } +using namespace anonpdns; int B64Decode(const std::string& strInput, std::string& strOutput) { diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index d50db1b4a7..515ce77b04 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -48,9 +48,9 @@ */ -namespace { +//namespace { typedef HEADER dnsheader; -} +//} using namespace std; using namespace boost; diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index 79021c5777..7fa51ce20c 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -201,7 +201,7 @@ private: -namespace { +//namespace { struct soatimes { uint32_t serial; @@ -210,7 +210,7 @@ namespace { uint32_t expire; uint32_t minimum; }; -} +//} class SOARecordContent : public DNSRecordContent