Browse Source

[3870] protect OPTIONAL against a #define in system headers

Francis Dupont 10 years ago
parent
commit
8fb273bb0e
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>
 
+#ifdef OPTIONAL
+#undef OPTIONAL
+#endif
+
 namespace isc {
 namespace dhcp {
 

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

@@ -32,6 +32,10 @@
 #include <iostream>
 #include <queue>
 
+#ifdef OPTIONAL
+#undef OPTIONAL
+#endif
+
 namespace isc {
 namespace dhcp {