diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-12-02 13:38:30 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-12-02 13:38:30 +0000 |
commit | 3b3e24dc4d89b471d80428dd9ad122f259b1fc81 (patch) | |
tree | 883bbf842c934c6278994d83661de4dc65b3a9be /mi | |
parent | 2620676306d1eccd24a6bf0637a60842656e6f7c (diff) |
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()
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mibitblt.c | 15 |
1 files 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 |