projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237f632
)
use replacement if complex.h not found
author
Paul Brossier
<piem@altern.org>
Fri, 29 Sep 2006 14:20:14 +0000
(14:20 +0000)
committer
Paul Brossier
<piem@altern.org>
Fri, 29 Sep 2006 14:20:14 +0000
(14:20 +0000)
use replacement if complex.h not found
src/fft.h
patch
|
blob
|
history
diff --git
a/src/fft.h
b/src/fft.h
index
dc1ea65
..
d011798
100644
(file)
--- a/
src/fft.h
+++ b/
src/fft.h
@@
-30,11
+30,19
@@
* 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
extern "C" {