ref: fd6b90f306465ae305ebf0f2b2ee1d8a1418c744
parent: d2d862bf946114f013a9a579d461f2c5536ba1bf
author: Paul Brossier <piem@piem.org>
date: Mon Sep 28 17:17:53 EDT 2009
src/spectral/fft.c: add a warning if using fftw3 with aubio single
--- 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;