From 2314434690f483ba5141bc1b691af8d7642361de Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Fri, 19 Oct 2012 01:59:16 +0300 Subject: [PATCH] Workaround for FTBS with gcc 4.6 (http://gcc.gnu.org/PR54965) --- pixman/pixman-combine-float.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/pixman/pixman-combine-float.c b/pixman/pixman-combine-float.c index 7bf5b5a..c3d54f0 100644 --- a/pixman/pixman-combine-float.c +++ b/pixman/pixman-combine-float.c @@ -35,6 +35,13 @@ #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 -- 1.7.8.6