Workaround for FTBFS with gcc 4.6 (http://gcc.gnu.org/PR54965)
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Thu, 18 Oct 2012 22:59:16 +0000 (01:59 +0300)
committerSiarhei Siamashka <siarhei.siamashka@gmail.com>
Wed, 24 Oct 2012 21:39:41 +0000 (00:39 +0300)
GCC 4.6 has problems with force_inline, so just use normal inline instead.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=55630

pixman/pixman-combine-float.c

index 7bf5b5a..c3d54f0 100644 (file)
 
 #include "pixman-private.h"
 
+/* Workaround for http://gcc.gnu.org/PR54965 */
+/* GCC 4.6 has problems with force_inline, so just use normal inline instead */
+#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 6)
+#undef force_inline
+#define force_inline __inline__
+#endif
+
 typedef float (* combine_channel_t) (float sa, float s, float da, float d);
 
 static force_inline void