From 1089f3837c0bcd33db8c21964b4f6e8bd9f35153 Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 27 Jul 2017 16:47:35 +0100 Subject: [PATCH] Make it easier to use a static version of fftw in the dsp module --- modules/juce_dsp/frequency/juce_FFT.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/juce_dsp/frequency/juce_FFT.cpp b/modules/juce_dsp/frequency/juce_FFT.cpp index 7afa32a20f..08ab182574 100644 --- a/modules/juce_dsp/frequency/juce_FFT.cpp +++ b/modules/juce_dsp/frequency/juce_FFT.cpp @@ -530,6 +530,20 @@ FFT::EngineImpl appleFFT; //============================================================================== //============================================================================== #if JUCE_DSP_USE_SHARED_FFTW || JUCE_DSP_USE_STATIC_FFTW + +#if JUCE_DSP_USE_STATIC_FFTW +extern "C" +{ + void* fftwf_plan_dft_1d (int, void*, void*, int, int); + void* fftwf_plan_dft_r2c_1d (int, void*, void*, int); + void* fftwf_plan_dft_c2r_1d (int, void*, void*, int); + void fftwf_destroy_plan (void*); + void fftwf_execute_dft (void*, void*, void*); + void fftwf_execute_dft_r2c (void*, void*, void*); + void fftwf_execute_dft_c2r (void*, void*, void*); +} +#endif + struct FFTWImpl : public FFT::Instance { #if JUCE_DSP_USE_STATIC_FFTW