Browse Source

[3870] Added a comment to explain the guard

Francis Dupont 9 years ago
parent
commit
a2c740a8ca
2 changed files with 8 additions and 0 deletions
  1. 4 0
      src/bin/dhcp4/dhcp4_srv.h
  2. 4 0
      src/bin/dhcp6/dhcp6_srv.h

+ 4 - 0
src/bin/dhcp4/dhcp4_srv.h

@@ -33,6 +33,10 @@
 #include <iostream>
 #include <queue>
 
+// Undefine the macro OPTIONAL which is defined in some operating
+// systems but conflicts with a member of the RequirementLevel enum in
+// the server class.
+
 #ifdef OPTIONAL
 #undef OPTIONAL
 #endif

+ 4 - 0
src/bin/dhcp6/dhcp6_srv.h

@@ -32,6 +32,10 @@
 #include <iostream>
 #include <queue>
 
+// Undefine the macro OPTIONAL which is defined in some operating
+// systems but conflicts with a member of the RequirementLevel enum in
+// the server class.
+
 #ifdef OPTIONAL
 #undef OPTIONAL
 #endif