]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- unbound.h has extern "C" statement for easier include in c++.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Jun 2010 13:23:03 +0000 (13:23 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Jun 2010 13:23:03 +0000 (13:23 +0000)
git-svn-id: file:///svn/unbound/trunk@2169 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
libunbound/unbound.h

index 2fa2be5fa6349ed0ca0f6e21647fd4982a731b56..2e7cb97a60ad9a9054a0620c0ebb8e5c97d2afbc 100644 (file)
@@ -2,6 +2,7 @@
        - Fix handling of corner case reply from lame server, follows rfc2308.
          It could lead to a nodata reply getting into the cache if the search
          for a non-lame server turned up other misconfigured servers.
+       - unbound.h has extern "C" statement for easier include in c++.
 
 23 June 2010: Wouter
        - iana portlist updated.
index 174c5bc6bd5c29a2cdd381605345a066b6588f01..a17742ca518799ad50cb657d29f39a93022420be 100644 (file)
 #ifndef _UB_UNBOUND_H
 #define _UB_UNBOUND_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * The validation context is created to hold the resolver status,
  * validation keys and a small cache (containing messages, rrsets,
@@ -539,4 +543,8 @@ int ub_ctx_data_add(struct ub_ctx* ctx, char *data);
  */
 int ub_ctx_data_remove(struct ub_ctx* ctx, char *data);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _UB_UNBOUND_H */