Patch from mathuria, compatability with solaris

This commit is contained in:
Glenn L McGrath
2003-02-08 23:36:16 +00:00
parent 3aeaee33b6
commit a88cb5025c
3 changed files with 6 additions and 1 deletions

View File

@@ -95,7 +95,9 @@ extern const struct BB_applet applets[];
/* Bit map related macros -- libc5 doens't provide these... sigh. */
#ifndef setbit
#ifndef NBBY
#define NBBY CHAR_BIT
#endif
#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
#define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))