From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=sSI+aO5lgnex3vZ4VGoIuS4kda5ffF8lsaO3Pt8W+jUdjNHuPouxi5Kb80QAuLUwee DzFOaGpsXdOppdm/mgoPgdTgNXoP3ZgbhN0O1YkKthMuoEhnBLnWGiWtDX9TdK496jNJ yDu5sdVIvm76SIEN9NIf7DaXW5vy8zpL9a0KQvfyYrCF59DLGHa0dPlBGPBu3gNS/0T7 VrzkvzZoXOVxbp5PuCO2U5jxDhHpYWwUilBzP/Ndlq6LzcO/hTbqss3u9B+sONwjQL8T IQfIdCXfDYkA8YSOs/wyh9EDY6U+E0yVTL5z33dqYBo24ZlvT9Bkoy0yyFOC/FNKJ0Q6 Ltgg== 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=GmZzM9PoogD68uAxNhFw+eNv+Vjrc+oKtunbdbUf2d9JhJnmX8gvub2701C+qoREv5 8tI46ZArbwwwHkKzQ8IdwXnIpTutZCJDegDWnmxHcNRmnAaAHUfgR+S/sAvFCl6vMeOV RlYHlrTMql6wC6EDfd6dJOl/V6HhXeO/ey46OpFXmzq4VVLGRGpeURvTMmOYF2MniF5Y rLkDanbRZAgSAo6IMHmhTRQFI/zbGMeLN9eRKj5PMc3wZKE3OhOWPEovEdzaMUNZ4hrh EjXyIx9TAXSHCH3P1jCszKyMMv5wexehI5P0eJu651JXCOd2UqXfvXZkPeEkVl/C5Kwx RE9Q== X-Gm-Message-State: AN3rC/7+Objw2ozJqMd330SMUqLcT44hpCD+ZnxwhBbFAY9rdV/4MdEn kI2oUupqt+hcXbNKrlA= X-Received: by 10.28.93.13 with SMTP id r13mr1062830wmb.136.1493109028017; Tue, 25 Apr 2017 01:30:28 -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 j26sm25390153wrb.19.2017.04.25.01.30.27 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 25 Apr 2017 01:30:27 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Remy Horton Date: Tue, 25 Apr 2017 10:30:02 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 08/13] 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: Tue, 25 Apr 2017 08:30:28 -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