From 3b3e24dc4d89b471d80428dd9ad122f259b1fc81 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Thu, 2 Dec 2004 13:38:30 +0000 Subject: [PATCH] Set HasFfs to NO Fix link order problems with mingw. Add libdix.a after libmi.a. Pass -DHAS_FFS to compiler remove inline code for ffs(). It will link to dix/ffs.c instead added declaration for ffs() --- mi/mibitblt.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/mi/mibitblt.c b/mi/mibitblt.c index 57d46ee38..452727455 100644 --- a/mi/mibitblt.c +++ b/mi/mibitblt.c @@ -61,19 +61,8 @@ SOFTWARE. #include "Xmd.h" #include "servermd.h" -#ifdef WIN32 -static -int ffs(int word) { - int i; - if (!word) - return 0; - i = 0; - for (;;) - { - if (((1 << i++) & word) != 0) - return i; - } -} +#ifndef HAS_FFS +extern int ffs(int); #endif /* MICOPYAREA -- public entry for the CopyArea request