Created attachment 612177 [details] [diff] [review]
Like in case of MSVC, there is no ffs in win32. GCC has __builtin_ffs, so we may simply use it (for MSVC it's implemented in cairo-compiler-private.h using _BitScanForward).
Comment on attachment 612177 [details] [diff] [review]
Please add a patch to the gfx/cairo/
Thanks for review, pushed with a patch file: