rtpulpfecdec: fix build with older gcc

As on Ubuntu Trusty.

https://bugzilla.gnome.org/show_bug.cgi?id=794493
This commit is contained in:
Tim-Philipp Müller 2018-03-19 18:39:08 +00:00
parent 42f5f3d1be
commit 56577236f8

View file

@ -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