diff -uprN cairo-1.10.0/src/cairo-compiler-private.h cairo-1.10.0.az/src/cairo-compiler-private.h --- cairo-1.10.0/src/cairo-compiler-private.h 2010-09-02 13:38:55 +0200 +++ cairo-1.10.0.az/src/cairo-compiler-private.h 2010-11-11 14:34:31 +0200 @@ -229,6 +229,10 @@ ffs (int x) #endif +#if defined(__MINGW32__) && !defined(HAVE_FFS) +# define ffs __builtin_ffs +#endif + #if defined(_MSC_VER) && defined(_M_IX86) /* When compiling with /Gy and /OPT:ICF identical functions will be folded in together. The CAIRO_ENSURE_UNIQUE macro ensures that a function is always unique and