From: Paul Brossier Date: Mon, 28 Sep 2009 19:57:10 +0000 (+0200) Subject: src/temporal/: avoid include in .h, protect with #ifndef _FOO_H and #ifdef __cplusplus X-Git-Tag: bzr2git~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34eee42b04b1477a98d8a303f947eb8d8fbaecd1;p=aubio.git src/temporal/: avoid include in .h, protect with #ifndef _FOO_H and #ifdef __cplusplus --- diff --git a/src/temporal/adesign.h b/src/temporal/adesign.h index b0aa4242..867630c8 100644 --- 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 @@ aubio_filter_t * new_aubio_adsgn_filter(uint_t samplerate, uint_t channels); #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 */ diff --git a/src/temporal/cdesign.h b/src/temporal/cdesign.h index df40edee..fc114461 100644 --- 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 @@ aubio_filter_t * new_aubio_cdsgn_filter(uint_t samplerate, uint_t channels); #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 */