From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) by dpdk.org (Postfix) with ESMTP id 0246C5A8D for ; Wed, 26 Apr 2017 14:07:43 +0200 (CEST) Received: by mail-wr0-f178.google.com with SMTP id l50so50574302wrc.3 for ; Wed, 26 Apr 2017 05:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eCVPC1miJ8DFjBa3amcCD65hxY/g1nf7SjjdNRU8JZY=; b=a5EAkNxJCe4ZrVE+42a4Ad6ANUXC2EUejXorzNQLIW5rpPrL3F18XrZZpyR0eaKm9L ZN0ISAsFnvKx/mRzwnCQ3Gs1L10S6V0Xqi6b6Me3OlW1fUQDu4Z+w9N3n0EzaNAoP20D M9v1SenZR4eVNcLL3MJjJujM6NyMIpXWHIwzIy9afNr6FzZpwQSzLz12rT44Do3MqHEk GO1zAJSBJ6AUDZgVMmVK3Bjac9UU0VZA6k1fUx5y/AQX4DNUlACGgM/kGvEsaFuXUxbh sOoF34IuDA8tcVvY4SUPBtQm13c+mBvVEnl5S0a3JdQfVVNGLFDggnpEW6ABo8X5YvAO W7ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eCVPC1miJ8DFjBa3amcCD65hxY/g1nf7SjjdNRU8JZY=; b=TG8w/SxjEpmFreARlRtk3fdnNS6VXm2HF0QAGEdyV0zzxYieacKrUzPtM2bYguZCHv /t/MkCq/y+9SHr3cNsmKqSFDFzKFaVOKJnMO9F05mfQ0ouTp+LD+CpBL0ctvVWnlPc0e GWkbkERmK2XwyIB4KtM6NESkTY1qrsr2UKJvpXUAlGU/PucFdjxwuH3IH8ctD4hPwqbA LnIBhf7e1FXVMxLMWCa6FGF1nUCjm7CR2EuDtiqJ/ZnZpR1yR09yb8FeHXuSm9nde9Np IOuEGA6OTbo7pFJYXaAOJjl4bo/7ilKXlB5xHPWyTmP/7YdY8xs4Isx4WunwUtz8Gp7Z +Pug== X-Gm-Message-State: AN3rC/5IFK+2//GE2i5Fdd1Slg7MoOPA+UdVqZYbPHpuzyCNyCNiKmJF /lFcGku+ggFwuE8p1gk= X-Received: by 10.223.152.6 with SMTP id v6mr12802837wrb.60.1493208463479; Wed, 26 Apr 2017 05:07:43 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id y63sm9131223wme.31.2017.04.26.05.07.42 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 26 Apr 2017 05:07:42 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Remy Horton Date: Wed, 26 Apr 2017 14:07:16 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 08/14] bitrate: fix errors in exported header 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: , X-List-Received-Date: Wed, 26 Apr 2017 12:07:44 -0000 This commit addresses the following error: In file included from /tmp/check-includes.sh.28023.c:1:0: build/include/rte_bitrate.h:82:2: error: unknown type name 'uint8_t' [...] It also adds C++ awareness to rte_bitrate.h. Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library") Cc: Remy Horton Signed-off-by: Adrien Mazarguil --- lib/librte_bitratestats/rte_bitrate.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_bitratestats/rte_bitrate.h b/lib/librte_bitratestats/rte_bitrate.h index b9f11bd..15fc270 100644 --- a/lib/librte_bitratestats/rte_bitrate.h +++ b/lib/librte_bitratestats/rte_bitrate.h @@ -34,6 +34,12 @@ #ifndef _RTE_BITRATE_H_ #define _RTE_BITRATE_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif + /** * Bitrate statistics data structure. * This data structure is intentionally opaque. @@ -81,4 +87,8 @@ int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data); int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data, uint8_t port_id); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_BITRATE_H_ */ -- 2.1.4