From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E02BA051C; Fri, 26 Jun 2020 16:04:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D7791BFF0; Fri, 26 Jun 2020 16:04:09 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id E190C1BFE9 for ; Fri, 26 Jun 2020 16:04:06 +0200 (CEST) IronPort-SDR: A0OJW5FfaD2d7T3wejKUcI2Z5Ri7wU/aFahSVa2IWnlBTpFNLPLZtkmDLSljNxr7ODXJOX8aev cAo+nDkmujdw== X-IronPort-AV: E=McAfee;i="6000,8403,9663"; a="230102382" X-IronPort-AV: E=Sophos;i="5.75,283,1589266800"; d="scan'208,217";a="230102382" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2020 07:04:05 -0700 IronPort-SDR: 4ePY2iyASVf9jSrtBwnR4rcPQbnUya/O31mgQuSfI9i7cnOTfi7u7tm2cELrjr/tZinWNtPuUS 8f5JJqdzIZHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,283,1589266800"; d="scan'208,217";a="276374402" Received: from vmedvedk-mobl.ger.corp.intel.com (HELO [10.251.170.129]) ([10.251.170.129]) by orsmga003.jf.intel.com with ESMTP; 26 Jun 2020 07:04:04 -0700 To: Stephen Hemminger Cc: dev@dpdk.org References: <20200625203208.19315-1-stephen@networkplumber.org> <20200625203208.19315-4-stephen@networkplumber.org> From: "Medvedkin, Vladimir" Message-ID: <700c589a-d9a2-2aae-85c6-56a7b140fbcc@intel.com> Date: Fri, 26 Jun 2020 15:04:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200625203208.19315-4-stephen@networkplumber.org> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH 3/3] rib: add C++ include guard X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 25/06/2020 21:32, Stephen Hemminger wrote: > All include files should be safe from C++ > > Fixes: 5a5793a5ffa2 ("rib: add RIB library") > Fixes: f7e861e21c46 ("rib: support IPv6") > Signed-off-by: Stephen Hemminger > --- > lib/librte_rib/rte_rib.h | 8 ++++++++ > lib/librte_rib/rte_rib6.h | 10 +++++++++- > 2 files changed, 17 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_rib/rte_rib.h b/lib/librte_rib/rte_rib.h > index a7daa9d8a76e..e9ffefce6edd 100644 > --- a/lib/librte_rib/rte_rib.h > +++ b/lib/librte_rib/rte_rib.h > @@ -13,6 +13,10 @@ > > #include > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > /** > * rte_rib_get_nxt() flags > */ > @@ -275,4 +279,8 @@ __rte_experimental > void > rte_rib_free(struct rte_rib *rib); > > +#ifdef __cplusplus > +} > +#endif > + > #endif /* _RTE_RIB_H_ */ > diff --git a/lib/librte_rib/rte_rib6.h b/lib/librte_rib/rte_rib6.h > index e6b4b7fff98c..68eaa8aa4812 100644 > --- a/lib/librte_rib/rte_rib6.h > +++ b/lib/librte_rib/rte_rib6.h > @@ -14,6 +14,10 @@ > #include > #include > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > #define RTE_RIB6_IPV6_ADDR_SIZE 16 > > /** > @@ -332,4 +336,8 @@ __rte_experimental > void > rte_rib6_free(struct rte_rib6 *rib); > > -#endif /* _RTE_RIB_H_ */ > +#ifdef __cplusplus > +} > +#endif > + > +#endif /* _RTE_RIB6_H_ */ Acked-by: Vladimir Medvedkin -- Regards, Vladimir