pph: include config.h from rate_speexrate.c
PATCH 1/1 pph: include config.h from rate_speexrate.c
Fixes compilation against libspeexdsp 1.2rc3.
rate_speexrate.c includes speex_resampler.h, which depends on config.h by referencing the HAVE_SPEEX_SPEEXDSP_TYPES_H macro. AFAIK it's not a good idea to include config.h from headers (I don't know/remember why, though), which is why I include config.h from rate_speexrate.c instead of speex_resampler.h.
--- pph/rate_speexrate.c | 1 + 1 file changed, 1 insertion(+)
pph/rate_speexrate.c +1 -0
@@ -28,6 +28,7 @@POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include <stdio.h> #include <alsa/asoundlib.h> #include <alsa/pcm_rate.h>
Signature · 1 line
2.7.0.rc3
Takashi Iwai
AppliedQuoted 10 lines · Tanu Kaskinen
Fixes compilation against libspeexdsp 1.2rc3.
rate_speexrate.cincludesspeex_resampler.h, which depends onconfig.hby referencing theHAVE_SPEEX_SPEEXDSP_TYPES_Hmacro. AFAIK it's not a good idea to includeconfig.hfrom headers (I don't know/remember why, though), which is why I includeconfig.hfromrate_speexrate.cinstead ofspeex_resampler.h.Signed-off-by Tanu Kaskinen <[email protected]>
Applied, thanks.
Takashi
Quoted 19 lines
--- pph/rate_speexrate.c | 1 + 1 file changed, 1 insertion(+)pph/rate_speexrate.c +1
-0@@ -28,6 +28,7 @@POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include <stdio.h> #include <alsa/asoundlib.h> #include <alsa/pcm_rate.h> Signature · 1 line
2.7.0.rc3