abort(); /* mask is zero */
return (u_int)bit;
}
-#elif (defined(MSDOS) && defined(__WATCOMC__)) || defined(STRINGS_H_DECLARES_FFS)
- /*
- * MS-DOS with Watcom C, which has <strings.h> and declares ffs() there,
- * or some other platform (UN*X conforming to a sufficient recent version
- * of the Single UNIX Specification).
- */
- #include <strings.h>
- #define lowest_set_bit(mask) (u_int)((ffs((mask)) - 1))
-#elif (defined(MSDOS) && defined(__DJGPP__)) || defined(__hpux)
- /*
- * MS-DOS with DJGPP or HP-UX 11i v3, which declare ffs() in <string.h>,
- * which we've already included. Place this branch after the <strings.h>
- * branch, in case a later release of HP-UX makes the declaration available
- * via the standard header.
- */
- #define lowest_set_bit(mask) ((u_int)(ffs((mask)) - 1))
#else
/*
* None of the above.