< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] [PATCH] Fix broken IPv6 DNS warning for VS2005


Hi,

as WarningLog is itself a preprocessor macro, VS2005 doesn't like the extra ifdef inside of it.

Thanks,
Gregor
Index: rutil/dns/AresDns.cxx
===================================================================
--- rutil/dns/AresDns.cxx       (revision 8543)
+++ rutil/dns/AresDns.cxx       (working copy)
@@ -155,13 +155,11 @@
          }
          else
          {
-           WarningLog (<< "Ignoring non-IPv4 additional name server "
 #if defined(USE_CARES)
-                       "(not yet supported with c-ares)"
+             WarningLog (<< "Ignoring non-IPv4 additional name server (not yet 
supported with c-ares)");
 #elif defined(USE_ARES)
-                       "(IPv6 support was not enabled)"
+             WarningLog (<< "Ignoring non-IPv4 additional name server (IPv6 
support was not enabled)");
 #endif
-                       );
          }
       }
 #endif