Browse Source

[3828] Updated and added a comment

Francis Dupont 10 years ago
parent
commit
5d561c3c92
2 changed files with 8 additions and 2 deletions
  1. 4 1
      src/lib/dns/rrclass-placeholder.h
  2. 4 1
      src/lib/dns/rrclass.h

+ 4 - 1
src/lib/dns/rrclass-placeholder.h

@@ -24,7 +24,10 @@
 
 #include <boost/optional.hpp>
 
-#if defined(_WIN32) && defined(IN)
+// Undefine the macro IN which is defined in some operating systems
+// but conflicts the IN RR class.
+
+#ifdef IN
 #undef IN
 #endif
 

+ 4 - 1
src/lib/dns/rrclass.h

@@ -31,7 +31,10 @@
 
 #include <boost/optional.hpp>
 
-#if defined(_WIN32) && defined(IN)
+// Undefine the macro IN which is defined in some operating systems
+// but conflicts the IN RR class.
+
+#ifdef IN
 #undef IN
 #endif