From 66834b6405c4a4f0369fddd7d44826f82184ec68 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 21 Aug 2005 16:51:28 +0000 Subject: [PATCH] clarified fftw3 includes --- src/aubio_priv.h | 8 ++------ src/fft.c | 2 +- src/fft.h | 7 +++---- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 9240d60a..ee3977f1 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -44,17 +44,13 @@ #include #endif +/* must be included before fftw3.h */ #if HAVE_COMPLEX_H #include #endif -/* -#include -#include -#define FFTW_TYPE fftwf_complex -*/ + #if HAVE_FFTW3_H #include -//#define FFTW_TYPE fftwf_complex #endif #if HAVE_MATH_H diff --git a/src/fft.c b/src/fft.c index d10cb835..fa8db8f1 100644 --- a/src/fft.c +++ b/src/fft.c @@ -34,7 +34,7 @@ #if FFTW3F_SUPPORT #define real_t smpl_t -#else +#else #define real_t lsmp_t #endif diff --git a/src/fft.h b/src/fft.h index 03d53237..591fd6c8 100644 --- a/src/fft.h +++ b/src/fft.h @@ -23,10 +23,9 @@ #ifndef FFT_H_ #define FFT_H_ -/* -// complex before fftw3 -#include -*/ + +/* is not included here but only in aubio_priv.h, so that c++ + * projects can still use their own complex definition. */ #include #if FFTW3F_SUPPORT -- 2.11.0