From: Takashi Iwai Date: Fri, 26 Aug 2011 07:43:11 +0000 (+0200) Subject: pulse - Define a dummy PA_CHECK_VERSION() when not available X-Git-Tag: v1.0.25~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=83d5f81b7fb873dfe603356ee5b97b1381a4d5ec;p=alsa-plugins.git pulse - Define a dummy PA_CHECK_VERSION() when not available An old version of PA doesn't define this macro, and gives a build error. Signed-off-by: Takashi Iwai --- diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c index b0e52ab..e0fbd4c 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c @@ -587,7 +587,11 @@ static void stream_request_cb(pa_stream * p, size_t length, void *userdata) update_active(pcm); } -#if defined(PA_CHECK_VERSION) && PA_CHECK_VERSION(0,99,0) +#ifndef PA_CHECK_VERSION +#define PA_CHECK_VERSION(x, y, z) 0 +#endif + +#if PA_CHECK_VERSION(0,99,0) #define DEFAULT_HANDLE_UNDERRUN 1 #define do_underrun_detect(pcm, p) \ ((pcm)->written <= pa_stream_get_underflow_index(p))