From 965eda947d4c847c6e520317b57024b4586507ec Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 25 Apr 2019 23:11:08 +0100 Subject: [PATCH] mi: Provide ffs when compiling using MinGW I don't know how I feel about the promise made in 2e7f790b :) --- mi/mibitblt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mi/mibitblt.c b/mi/mibitblt.c index 4f7e29170..84f8da65a 100644 --- a/mi/mibitblt.c +++ b/mi/mibitblt.c @@ -62,6 +62,10 @@ SOFTWARE. #include #include "servermd.h" +#ifdef __MINGW32__ +#define ffs __builtin_ffs +#endif + /* MICOPYAREA -- public entry for the CopyArea request * For each rectangle in the source region * get the pixels with GetSpans