ref: d9c45df5930c9964f82363e4ea88a4a9c4cda732
parent: 34eee42b04b1477a98d8a303f947eb8d8fbaecd1
author: Paul Brossier <piem@piem.org>
date: Mon Sep 28 18:02:20 EDT 2009
src/spectral/spectral_centroid.h: protect with #ifndef _FOO_H and #ifdef __cplusplus
--- 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 */