From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 062F8A00C2; Wed, 17 Mar 2021 06:33:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79DC7406A3; Wed, 17 Mar 2021 06:33:25 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 5B3CE40689 for ; Wed, 17 Mar 2021 06:33:24 +0100 (CET) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 7387C20B39C5; Tue, 16 Mar 2021 22:33:23 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7387C20B39C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1615959203; bh=aE7wkJ1G0HmpBVi2syeMQXAcuel6LydSCGeWXtJmAdg=; h=From:To:Cc:Subject:Date:From; b=OUovmfOsfa+Xd6+kUxCMJziWyilYmBpFbCkPHPIK3N/MiZpabgWp+/6RyV4KG2JcD MHnw5dvtUKiOtwiTvZvXVEMFHkwFYyXja9AFhEpFahTm7ev7vA4RSuOEtEebSl9mgX Hz73hj680Wdq3Mva35XDwnJOoTh73R+4hmQTB2EY= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, bruce.richardson@intel.com Date: Tue, 16 Mar 2021 22:33:18 -0700 Message-Id: <1615959198-22128-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] eal: declare extern "C" link when building with __cplusplus X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Add missing extern "C" linkage for rte_reciprocal.h consistent with other eal headers. Signed-off-by: Tyler Retzlaff --- lib/librte_eal/include/rte_reciprocal.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/include/rte_reciprocal.h b/lib/librte_eal/include/rte_reciprocal.h index 735adb029..fa1cb4854 100644 --- a/lib/librte_eal/include/rte_reciprocal.h +++ b/lib/librte_eal/include/rte_reciprocal.h @@ -29,6 +29,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + struct rte_reciprocal { uint32_t m; uint8_t sh1, sh2; @@ -89,4 +93,8 @@ rte_reciprocal_divide_u64(uint64_t a, const struct rte_reciprocal_u64 *R) struct rte_reciprocal rte_reciprocal_value(uint32_t d); struct rte_reciprocal_u64 rte_reciprocal_value_u64(uint64_t d); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_RECIPROCAL_H_ */ -- 2.30.0.vfs.0.2