From 3f4be40f3078210f4b1daaaf6d7684a8a74c1ad7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 12 Feb 2020 08:55:24 +0100 Subject: [PATCH] pulse: only define PA_LIKELY when not already defined New pulse makes this define visible. --- pipewire-pulseaudio/src/internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipewire-pulseaudio/src/internal.h b/pipewire-pulseaudio/src/internal.h index 02f5075d0..c2088be44 100644 --- a/pipewire-pulseaudio/src/internal.h +++ b/pipewire-pulseaudio/src/internal.h @@ -51,8 +51,10 @@ extern "C" { #define pa_streq(a,b) (!strcmp((a),(b))) #define pa_strneq(a,b,n) (!strncmp((a),(b),(n))) +#ifndef PA_LIKELY #define PA_UNLIKELY SPA_UNLIKELY #define PA_LIKELY SPA_LIKELY +#endif #define PA_MIN SPA_MIN #define PA_MAX SPA_MAX #define pa_assert spa_assert