Index: include/reactos/wine/port.h =================================================================== --- include/reactos/wine/port.h (revision 58975) +++ include/reactos/wine/port.h (working copy) @@ -43,6 +43,7 @@ #ifdef HAVE_UNISTD_H # include #endif +#include /**************************************************************** @@ -345,13 +346,13 @@ #endif /* __i386___ && __GNUC__ */ -#if defined(_MSC_VER) +#ifdef _WIN32 __forceinline int ffs(int mask) { long index; - if (_BitScanForward(&index, mask) == 0) return 0; + if (_BitScanForward((unsigned long *)&index, mask) == 0) return 0; return index; } #endif