diff --git a/spa/plugins/alsa/alsa-pcm.h b/spa/plugins/alsa/alsa-pcm.h index 7d6621588..f3b3565f4 100644 --- a/spa/plugins/alsa/alsa-pcm.h +++ b/spa/plugins/alsa/alsa-pcm.h @@ -354,8 +354,7 @@ static inline int ratelimit_test(struct ratelimit *r, uint64_t now) return missed; } -#if defined(SND_LIB_VER) -#if SND_LIB_VERSION >= SND_LIB_VER(1, 2, 6) +#if defined(SND_LIB_VER) && SND_LIB_VERSION >= SND_LIB_VER(1, 2, 6) #define channel_area_addr snd_pcm_channel_area_addr #else static inline void *channel_area_addr(const snd_pcm_channel_area_t *area, snd_pcm_uframes_t offset) @@ -363,7 +362,6 @@ static inline void *channel_area_addr(const snd_pcm_channel_area_t *area, snd_pc return (char *)area->addr + (area->first + area->step * offset) / 8; } #endif -#endif #ifdef __cplusplus } /* extern "C" */