Parcourir la source

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

Francis Dupont il y a 10 ans
Parent
commit
8fb273bb0e
2 fichiers modifiés avec 8 ajouts et 0 suppressions
  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 {