From 38accc1edfe57a96f8d52043f738007eace67dd5 Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Wed, 26 Apr 2017 14:07:18 +0200 Subject: [PATCH] metrics: fix exported header 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") Signed-off-by: Adrien Mazarguil Acked-by: Remy Horton --- 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 fd0154fe17..0fa3104ec4 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.20.1