ref: eeb72766b9c8ebc8564e4055f78af887b28c0341
parent: f2e9a8a99be7f51e01157a1a46bcbd2270135aa2
author: Paul Brossier <piem@piem.org>
date: Mon May 2 22:35:19 EDT 2016
src/spectral/fft.c: fail build if trying to mix aubio/fftw3 in double/single precision
--- a/src/spectral/fft.c
+++ b/src/spectral/fft.c
@@ -64,12 +64,12 @@
#ifdef HAVE_FFTW3F
#if HAVE_AUBIO_DOUBLE
-#warning "Using aubio in double precision with fftw3 in single precision"
+#error "Using aubio in double precision with fftw3 in single precision"
#endif /* HAVE_AUBIO_DOUBLE */
#define real_t float
-#else /* HAVE_FFTW3F */
+#elif defined (HAVE_FFTW3) /* HAVE_FFTW3F */
#if !HAVE_AUBIO_DOUBLE
-#warning "Using aubio in single precision with fftw3 in double precision"
+#error "Using aubio in single precision with fftw3 in double precision"
#endif /* HAVE_AUBIO_DOUBLE */
#define real_t double
#endif /* HAVE_FFTW3F */