projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34eee42
)
src/spectral/spectral_centroid.h: protect with #ifndef _FOO_H and #ifdef __cplusplus
author
Paul Brossier
<piem@piem.org>
Mon, 28 Sep 2009 20:02:20 +0000
(22:02 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 28 Sep 2009 20:02:20 +0000
(22:02 +0200)
src/spectral/spectral_centroid.h
patch
|
blob
|
history
diff --git
a/src/spectral/spectral_centroid.h
b/src/spectral/spectral_centroid.h
index 13bff1156c3d4f2de5bedf1505357e111d6beb72..e2e17ea1b1735ec0edeca86c0087311a005f62b6 100644
(file)
--- 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 */