From fd6b90f306465ae305ebf0f2b2ee1d8a1418c744 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 28 Sep 2009 21:17:53 +0200 Subject: [PATCH] src/spectral/fft.c: add a warning if using fftw3 with aubio single --- src/spectral/fft.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/spectral/fft.c b/src/spectral/fft.c index 09177a3e..9403d7f4 100644 --- a/src/spectral/fft.c +++ b/src/spectral/fft.c @@ -37,11 +37,14 @@ #if HAVE_FFTW3F #if HAVE_AUBIO_DOUBLE #warning "Using aubio in double precision with fftw3 in single precision" -#endif +#endif /* HAVE_AUBIO_DOUBLE */ #define real_t float -#else +#else /* HAVE_FFTW3F */ +#if !HAVE_AUBIO_DOUBLE +#warning "Using aubio in single precision with fftw3 in double precision" +#endif /* HAVE_AUBIO_DOUBLE */ #define real_t double -#endif +#endif /* HAVE_FFTW3F */ struct _aubio_fft_t { uint_t winsize; -- 2.26.2