From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by dpdk.org (Postfix) with ESMTP id C5FCC5A8D for ; Mon, 24 Apr 2017 17:53:27 +0200 (CEST) Received: by mail-wr0-f170.google.com with SMTP id w50so70982082wrc.0 for ; Mon, 24 Apr 2017 08:53:27 -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=sXwKB/WoQoPSSgEWfgCGN5WupK4dlZqCtdwOAVlhurCVjAn0VPc28+8Ahu2De0ZWB4 YbD3XIrsmIMxaIpk2aR6pOGTmb14EkGSFv8j0T9EcRSqFRcEM/HD7y8q3P+L4e6Rfap1 E6ZkjwROUUg15zJZvbYauDn7seijFRYCSXdsSZ0asJpvj/rI0UWooUqpWsqetIOfo656 QS3IwiGvtlmTiEkd3KQb1o73P19ZspnkQ1WCoduROP7eJY4krLwa9mEL9CTLy7JDViWE qMCb7TqsMoFi4/oxQdVRGWqlcwMGzX/tGlJXr7ou1m6gwA0WE8GyIiV4ajq9ItVW9oes 66tw== 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=h4xeLK1liilPqY1303VY6goDedNCjzTHaz0ZfNL6KrPM+JfBqMERiTk+Qj5jYUgoij XfjDRTIazv39vJHvlt+Z5dPbzL9AohMCGv9LyFhXZ7Vw2l33vDQPOedTRdSBCNP8uX5R se060j6E/wQ+L2V7cw4Pcjs0TAa+J9VxHqp9/VUyS6vWprGOf9WeXBlqCRrCsUMXOMwa payokv+hL0RVjLPBYtQkRLq2O5DT6iR+zNDB3jduQuigxKXdR0WyhRPhALBCXl/zXnqQ zeXRW5+fjvWvFwUZBzm65ZKkviZpmOB38sgqeb7JPUa0/FWkOQdk1H02TeB/jGsuUfNd x6uQ== X-Gm-Message-State: AN3rC/5Jsb/25VMdiKCkhubplJtlIz+NWS/lBhEZwN7SdehKY/vrK5DY R6YryqkwysuRwbws X-Received: by 10.223.135.213 with SMTP id c21mr7338620wrc.10.1493049207376; Mon, 24 Apr 2017 08:53:27 -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 b10sm968863wme.22.2017.04.24.08.53.26 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 24 Apr 2017 08:53:26 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Remy Horton Date: Mon, 24 Apr 2017 17:53:02 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH 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: Mon, 24 Apr 2017 15:53: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