From: Paul Brossier Date: Mon, 28 Sep 2009 20:02:20 +0000 (+0200) Subject: src/spectral/spectral_centroid.h: protect with #ifndef _FOO_H and #ifdef __cplusplus X-Git-Tag: bzr2git~259 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9c45df5930c9964f82363e4ea88a4a9c4cda732;p=aubio.git src/spectral/spectral_centroid.h: protect with #ifndef _FOO_H and #ifdef __cplusplus --- 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 */