From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by dpdk.org (Postfix) with ESMTP id B3CAF68A9 for ; Mon, 24 Apr 2017 17:53:29 +0200 (CEST) Received: by mail-wr0-f180.google.com with SMTP id l50so20447195wrc.3 for ; Mon, 24 Apr 2017 08:53:29 -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=NwG2G5+Gkif3XNMNy9LX0tPUaDB4THBxY2xaLiuINFjt3+kMNl0alNM1J4gSAdRPTy j/icwhjI2JxImnSjwf0KmllKGL8CuQpGTyPfvUGQiA2sPwt1CCdetF/9e90tRbQjSo3T WdldmOQG4vLDxtSYoepmuf19J/siPjGpbXKd8BuCSELji5im3cHMk/HUZMiU8HOnHkQv cj/qCVpcKYEQdHVviKHI8utmGIF9Z2aqRAIHeYH1lm3osBlMgDK83OJjbaOCnRvrXIso ZYbd/bJ5iYs+lwFQIGxk4+Ck+MS1/ZFFpRn/BGGOwTEQlYsHDYQISsVpzPTtAVFhGZFW vCDg== 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=mwREjqNl8oN/5+Kgo+Ht5oFeQQ0jjiCS3CR8jZOKPE5P0x1B6e22l2qpwBxHkAA7ur MNYB59w+gdBNyitM9nFDvyFFUqYl1vJ0X5SgOz05b6WjHF09HrgM4lLCgO7c+1Xj6vtt Pi4TYAs9CDK/dkrvDXkfZmZGvyR1D0XfHDIlqzQpqXMo/MUU8EU/6OIARHNyFP1sXo2Q h9gqNsvUK+KEseI2hKmk8K2QgzymyoVLe+pIawhOIw2fUSRdURjIvg8olf3pPj001pOT s6tCW2F0wWtwImTKNArS3b93sDyyX54A42ruGVEq6bwxenMxnfGI21RmAGgp6oTAMPKJ 39uA== X-Gm-Message-State: AN3rC/6Tp+8meKrQiyHKT23LmLVN00odgIx0osPGWNtNV4ZaNTHCnpNc iapFS83+FfpjKoOK X-Received: by 10.223.174.130 with SMTP id y2mr7410887wrc.79.1493049209541; Mon, 24 Apr 2017 08:53:29 -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 d17sm868561wmi.21.2017.04.24.08.53.28 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 24 Apr 2017 08:53:28 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Remy Horton Date: Mon, 24 Apr 2017 17:53:04 +0200 Message-Id: <648d0835379f79c18008dd35969478b0d0452609.1493048352.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH 10/13] 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: Mon, 24 Apr 2017 15:53:30 -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