rtpulpfecdec: fix build with older gcc
authorTim-Philipp Müller <tim@centricular.com>
Mon, 19 Mar 2018 18:39:08 +0000 (18:39 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 19 Mar 2018 18:39:08 +0000 (18:39 +0000)
As on Ubuntu Trusty.

https://bugzilla.gnome.org/show_bug.cgi?id=794493

gst/rtp/gstrtpulpfecdec.c

index 7b13451..a24dd51 100644 (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