From 3b3ec6c7c35fdcc23ebae61eab60dba7aea65754 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 29 Sep 2006 14:20:14 +0000 Subject: [PATCH] use replacement if complex.h not found use replacement if complex.h not found --- src/fft.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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" { -- 2.26.2