]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3870] Added the OPTIONAL macro guard for d2
authorFrancis Dupont <fdupont@isc.org>
Tue, 23 Jun 2015 17:42:31 +0000 (19:42 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 23 Jun 2015 17:42:31 +0000 (19:42 +0200)
src/bin/d2/d_cfg_mgr.h

index c479f7eb5d9cda7931de161c140ac86ba4f31fb5..13e77a5e8ea4de27a43d72fc08c1bd024c8ce10d 100644 (file)
@@ -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
 #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 {