From d9c45df5930c9964f82363e4ea88a4a9c4cda732 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 28 Sep 2009 22:02:20 +0200 Subject: [PATCH] src/spectral/spectral_centroid.h: protect with #ifndef _FOO_H and #ifdef __cplusplus --- src/spectral/spectral_centroid.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/spectral/spectral_centroid.h b/src/spectral/spectral_centroid.h index 13bff115..e2e17ea1 100644 --- a/src/spectral/spectral_centroid.h +++ b/src/spectral/spectral_centroid.h @@ -21,7 +21,20 @@ * compute spectrum centroid of a cvec object */ +#ifndef _SPECTRAL_CENTROID_H +#define _SPECTRAL_CENTROID_H + +#ifdef __cplusplus +extern "C" { +#endif + /** * spectrum centroid computed on a cvec */ smpl_t aubio_spectral_centroid(cvec_t * input, smpl_t samplerate); + +#ifdef __cplusplus +} +#endif + +#endif /* _SPECTRAL_CENTROID_H */ -- 2.26.2