diff options
Diffstat (limited to 'include/ctype.h')
-rw-r--r-- | include/ctype.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/ctype.h b/include/ctype.h new file mode 100644 index 0000000..3617a9c --- /dev/null +++ b/include/ctype.h @@ -0,0 +1,21 @@ +#ifdef HAVE_CTYPE_H +#include_next <ctype.h> +#endif + +/* From ctype/ctype.h. */ +#ifndef _ISbit +/* These are all the characteristics of characters. + If there get to be more than 16 distinct characteristics, + many things must be changed that use `unsigned short int's. + + The characteristics are stored always in network byte order (big + endian). We define the bit value interpretations here dependent on the + machine's byte order. */ + +# include <endian.h> +# if __BYTE_ORDER == __BIG_ENDIAN +# define _ISbit(bit) (1 << (bit)) +# else /* __BYTE_ORDER == __LITTLE_ENDIAN */ +# define _ISbit(bit) ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8)) +# endif +#endif |