From: Paul Brossier Date: Fri, 29 Sep 2006 14:20:14 +0000 (+0000) Subject: use replacement if complex.h not found X-Git-Tag: bzr2git~555 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b3ec6c7c35fdcc23ebae61eab60dba7aea65754;p=aubio.git use replacement if complex.h not found use replacement if complex.h not found --- diff --git a/src/fft.h b/src/fft.h index dc1ea65c..d0117980 100644 --- a/src/fft.h +++ b/src/fft.h @@ -30,11 +30,19 @@ * c++ projects can still use their own complex definition. */ #include +#ifdef HAVE_COMPLEX_H #if FFTW3F_SUPPORT #define FFTW_TYPE fftwf_complex #else #define FFTW_TYPE fftw_complex #endif +#else +#if FFTW3F_SUPPORT +#define FFTW_TYPE float +#else +#define FFTW_TYPE double +#endif +#endif #ifdef __cplusplus extern "C" {