shithub: aubio

Download patch

ref: 34eee42b04b1477a98d8a303f947eb8d8fbaecd1
parent: a6958544ddbb26d720a6f77a1198480afd91650c
author: Paul Brossier <piem@piem.org>
date: Mon Sep 28 17:57:10 EDT 2009

src/temporal/: avoid include in .h, protect with #ifndef _FOO_H and #ifdef __cplusplus

--- a/src/temporal/adesign.h
+++ b/src/temporal/adesign.h
@@ -17,6 +17,9 @@
 
 */
 
+#ifndef _ADESIGN_H
+#define _ADESIGN_H
+
 /** \file
 
   Create a new A-design filter 
@@ -25,6 +28,10 @@
 
 */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** create new A-design filter
 
   \param samplerate sampling-rate of the signal to filter 
@@ -37,3 +44,9 @@
 #define aubio_adsgn_filter_do aubio_filter_do
 /** delete a-design filter object */
 #define del_aubio_adsgn_filter del_aubio_filter
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _ADESIGN_H */
--- a/src/temporal/cdesign.h
+++ b/src/temporal/cdesign.h
@@ -17,7 +17,8 @@
 
 */
 
-#include "filter.h"
+#ifndef _CDESIGN_H
+#define _CDESIGN_H
 
 /** \file
 
@@ -27,6 +28,10 @@
 
 */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** create new C-design filter
 
   \param samplerate sampling-rate of the signal to filter 
@@ -39,3 +44,9 @@
 #define aubio_cdsgn_filter_do aubio_filter_do
 /** delete c-design filter object */
 #define del_aubio_cdsgn_filter del_aubio_filter
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _CDESIGN_H */