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:
parent
2620676306
commit
3b3e24dc4d
|
@ -61,19 +61,8 @@ SOFTWARE.
|
||||||
#include "Xmd.h"
|
#include "Xmd.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifndef HAS_FFS
|
||||||
static
|
extern int ffs(int);
|
||||||
int ffs(int word) {
|
|
||||||
int i;
|
|
||||||
if (!word)
|
|
||||||
return 0;
|
|
||||||
i = 0;
|
|
||||||
for (;;)
|
|
||||||
{
|
|
||||||
if (((1 << i++) & word) != 0)
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* MICOPYAREA -- public entry for the CopyArea request
|
/* MICOPYAREA -- public entry for the CopyArea request
|
||||||
|
|
Loading…
Reference in New Issue