From 28992ff9926c57f1a75632be9885e318bd2e037b Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Mon, 3 Mar 2014 16:08:41 -0500 Subject: [PATCH] Add missing cpp guards for getdns_extra.h --- src/getdns/getdns_extra.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/getdns/getdns_extra.h b/src/getdns/getdns_extra.h index c17996e2..fabacfce 100644 --- a/src/getdns/getdns_extra.h +++ b/src/getdns/getdns_extra.h @@ -31,6 +31,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* Enable the return_dnssec_status extension on every request. value is either GETDNS_EXTENSION_TRUE or GETDNS_EXTENSION_FALSE returns GETDNS_RETURN_GOOD on success or GETDNS_RETURN_INVALID_PARAMETER @@ -117,5 +121,8 @@ getdns_context_get_extension_data(struct getdns_context* context); getdns_return_t getdns_extension_detach_eventloop(struct getdns_context* context); +#ifdef __cplusplus +} +#endif #endif