From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by dpdk.org (Postfix) with ESMTP id 22D9468A1 for ; Wed, 26 Apr 2017 14:07:45 +0200 (CEST) Received: by mail-wr0-f174.google.com with SMTP id z52so83049464wrc.2 for ; Wed, 26 Apr 2017 05:07:45 -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=grH9mXAkGpKDThAf5u+BUJhgdoVjfahWuVrkRLgQe6U=; b=zncBU3WrcEbZcIBFMM2WkkhqAw/Zwv/CvrzYUuektJhjAFxXKslGmYVwx11MPbsJ+C G18D6tKqfaf/iRRPKD+/YO2ouankcCXw7BZCpSep7W+UPHqx5DsDZA7lmg/CqKonGEq6 KS2nZj2fpC/lh8QCV9wHTFnUQaqXWIKZUEN5X+Zjrj/MULmVa4hISbVvPLZjgLj7EdMF XplQeNTd46u1ydhKbFIo7/3dBipHa/p2m2dAasw8dyucQbPp3iXMDr3Hlh5Kw+fMX87s ZyvMy9O7AZ1b4iMzQ/zTHQCZLxQtjWIdiXsV48jhvVzbVnSZfPVQjpajbvZozUzIBmzK bU8A== 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=grH9mXAkGpKDThAf5u+BUJhgdoVjfahWuVrkRLgQe6U=; b=A92NGRPI6AVPyQB8ohHC/07gGwljKrV9E/jayYvnUm9HoMXgA8k5wTBFdBGo9izvIU MXUWtXtVG25guGyrDyqmo2qwjsSbcHVsfoprdcDBNRa5Yf765BpzZ8obitM4pZG3Nd5L fHpmL3ztg5x+w8NCDao8qIMwu+56PPppFm+xsmiFxQrZ0BFWW6FUbUa4S4Ju1eOM1IZD zrVv5l6MMWllrkieUqkKJ3UE80bAnTez43cHm/r2j7M+WzgMhFAKYPSZAAacHywEaKoE ++/yMhpFx5u3jAba8uCF5UoQPT9It8FahcZv9Edy9yGof/TiWAZ6J6niG4frZbUJD8qL mGuA== X-Gm-Message-State: AN3rC/4hOE61Xq6KvYS6OwVs4BLbpxCWbnUi9+UwskPsETBPJbLn+NLN 57I5vfyugF3CKcXd X-Received: by 10.223.164.15 with SMTP id d15mr9518019wra.20.1493208465682; Wed, 26 Apr 2017 05:07:45 -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 g21sm42105wrg.22.2017.04.26.05.07.44 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 26 Apr 2017 05:07:45 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Remy Horton Date: Wed, 26 Apr 2017 14:07:18 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 10/14] metrics: 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:46 -0000 This commit addresses the following compilation errors: In file included from /tmp/check-includes.sh.21060.c:1:0: build/include/rte_metrics.h:91:2: error: unknown type name 'uint16_t' [...] It also adds C++ awareness to rte_metrics.h. Fixes: 349950ddb9c5 ("metrics: add information metrics library") Cc: Remy Horton Signed-off-by: Adrien Mazarguil --- lib/librte_metrics/rte_metrics.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_metrics/rte_metrics.h b/lib/librte_metrics/rte_metrics.h index fd0154f..0fa3104 100644 --- a/lib/librte_metrics/rte_metrics.h +++ b/lib/librte_metrics/rte_metrics.h @@ -52,6 +52,12 @@ #ifndef _RTE_METRICS_H_ #define _RTE_METRICS_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif + /** Maximum length of metric name (including null-terminator) */ #define RTE_METRICS_MAX_NAME_LEN 64 @@ -237,4 +243,8 @@ int rte_metrics_update_values( const uint64_t *values, uint32_t count); +#ifdef __cplusplus +} +#endif + #endif -- 2.1.4