Browse Source

[3870] Added the OPTIONAL macro guard for d2

Francis Dupont 9 years ago
parent
commit
60c6e347ef
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/bin/d2/d_cfg_mgr.h

+ 8 - 1
src/bin/d2/d_cfg_mgr.h

@@ -1,4 +1,4 @@
-// Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013, 2015 Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -22,6 +22,13 @@
 #include <stdint.h>
 #include <string>
 
+// Undefine the macro OPTIONAL which is defined in some operating
+// systems but conflicts with class constant is the context base class.
+
+#ifdef OPTIONAL
+#undef OPTIONAL
+#endif
+
 namespace isc {
 namespace d2 {