]> granicus.if.org Git - pdns/commitdiff
work around a g++ 4.1 profiling bug wrt anonymous namespaces
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 13 Mar 2006 19:38:15 +0000 (19:38 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 13 Mar 2006 19:38:15 +0000 (19:38 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@579 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/base64.cc
pdns/dnsparser.hh
pdns/dnsrecords.hh

index 812137f7d011cedaf0e2615320f3150246f01567..050939c172864addcfe7d4ae4147118d15f153b6 100644 (file)
@@ -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)
 {
index d50db1b4a7cf6c0796ca0d828bbded9d598ac774..515ce77b0425c8424f98fb07d1f5ce5f896d2371 100644 (file)
@@ -48,9 +48,9 @@
 */
     
 
-namespace {
+//namespace {
   typedef HEADER dnsheader;
-}
+//}
 
 using namespace std;
 using namespace boost;
index 79021c577761667b0e37f1947065acbeaf4932f2..7fa51ce20c96e2f430121ec7fc6df502d03dada3 100644 (file)
@@ -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