From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH v2 08/13] bitrate: fix errors in exported header Date: Tue, 25 Apr 2017 10:30:02 +0200 Message-ID: References: Cc: Remy Horton To: dev@dpdk.org Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 5F379688B for ; Tue, 25 Apr 2017 10:30:28 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id u65so16060475wmu.1 for ; Tue, 25 Apr 2017 01:30:28 -0700 (PDT) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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