ref: 3b3ec6c7c35fdcc23ebae61eab60dba7aea65754
parent: 237f63204499e5915eeb62088d4454c50d0aa84a
author: Paul Brossier <piem@altern.org>
date: Fri Sep 29 10:20:14 EDT 2006
use replacement if complex.h not found use replacement if complex.h not found
--- a/src/fft.h
+++ b/src/fft.h
@@ -30,10 +30,18 @@
* c++ projects can still use their own complex definition. */
#include <fftw3.h>
+#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