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()
This commit is contained in:
Alexander Gottwald 2004-12-02 13:38:30 +00:00
parent 2620676306
commit 3b3e24dc4d

View File

@ -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