clarified fftw3 includes
authorPaul Brossier <piem@altern.org>
Sun, 21 Aug 2005 16:51:28 +0000 (16:51 +0000)
committerPaul Brossier <piem@altern.org>
Sun, 21 Aug 2005 16:51:28 +0000 (16:51 +0000)
src/aubio_priv.h
src/fft.c
src/fft.h

index 9240d60..ee3977f 100644 (file)
 #include <stdio.h>
 #endif
 
+/* must be included before fftw3.h */
 #if HAVE_COMPLEX_H
 #include <complex.h>
 #endif
-/*
-#include <complex.h>
-#include <fftw3.h>
-#define FFTW_TYPE fftwf_complex
-*/
+
 #if HAVE_FFTW3_H
 #include <fftw3.h>
-//#define FFTW_TYPE fftwf_complex
 #endif
 
 #if HAVE_MATH_H
index d10cb83..fa8db8f 100644 (file)
--- 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
 
index 03d5323..591fd6c 100644 (file)
--- a/src/fft.h
+++ b/src/fft.h
 
 #ifndef FFT_H_
 #define FFT_H_
-/*
-// complex before fftw3 
-#include <complex.h>
-*/
+
+/* <complex.h> is not included here but only in aubio_priv.h, so that c++
+ * projects can still use their own complex definition. */
 #include <fftw3.h>
 
 #if FFTW3F_SUPPORT