From 595eab57de3a24753d8546e0a3158352e0bf432f Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 25 Jun 2010 13:23:03 +0000 Subject: [PATCH] - unbound.h has extern "C" statement for easier include in c++. git-svn-id: file:///svn/unbound/trunk@2169 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + libunbound/unbound.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 2fa2be5fa..2e7cb97a6 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/libunbound/unbound.h b/libunbound/unbound.h index 174c5bc6b..a17742ca5 100644 --- a/libunbound/unbound.h +++ b/libunbound/unbound.h @@ -93,6 +93,10 @@ #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 */ -- 2.47.2