From 56577236f8b0ca0735c1d58e92073e6d810d14db Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Mon, 19 Mar 2018 18:39:08 +0000 Subject: rtpulpfecdec: fix build with older gcc As on Ubuntu Trusty. https://bugzilla.gnome.org/show_bug.cgi?id=794493 --- gst/rtp/gstrtpulpfecdec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/rtp/gstrtpulpfecdec.c b/gst/rtp/gstrtpulpfecdec.c index 7b1345164..a24dd5138 100644 --- a/gst/rtp/gstrtpulpfecdec.c +++ b/gst/rtp/gstrtpulpfecdec.c @@ -278,9 +278,8 @@ gst_rtp_ulpfec_dec_recover_from_storage (GstRtpUlpFecDec * self, /* __has_builtin only works with clang, so test compiler version for gcc */ /* Intel compiler and MSVC probably have their own things as well */ -#if defined(__has_builtin) && __has_builtin(__builtin_ctzll) -#define rtp_ulpfec_ctz64 __builtin_ctzll -#elif defined(__GNUC__) && __GNUC__ >= 4 +/* TODO: make sure we use builtin for clang as well */ +#if defined(__GNUC__) && __GNUC__ >= 4 #define rtp_ulpfec_ctz64 __builtin_ctzll #else static inline gint -- cgit v1.2.3