src/spectral/spectral_centroid.h: protect with #ifndef _FOO_H and #ifdef __cplusplus
authorPaul Brossier <piem@piem.org>
Mon, 28 Sep 2009 20:02:20 +0000 (22:02 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 28 Sep 2009 20:02:20 +0000 (22:02 +0200)
src/spectral/spectral_centroid.h

index 13bff1156c3d4f2de5bedf1505357e111d6beb72..e2e17ea1b1735ec0edeca86c0087311a005f62b6 100644 (file)
  * 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 */