Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ctype / ctype_.h
bloba73870b3e4ade5545fd41bcc6f10446a22b4b46e
1 #include <ctype.h>
3 #if (defined(__GNUC__) && !defined(__CHAR_UNSIGNED__) && !defined(COMPACT_CTYPE)) || defined (__CYGWIN__)
4 #define ALLOW_NEGATIVE_CTYPE_INDEX
5 #endif
7 #ifdef ALLOW_NEGATIVE_CTYPE_INDEX
9 #ifndef __CYGWIN__
10 extern const char _ctype_b[];
11 #else
12 extern char _ctype_b[];
13 #endif
14 # define DEFAULT_CTYPE_PTR ((char *) _ctype_b + 127)
16 #else /* !ALLOW_NEGATIVE_CTYPE_INDEX */
18 /* _ctype_ is declared in <ctype.h>. */
19 # define DEFAULT_CTYPE_PTR ((char *) _ctype_)
21 #endif /* !ALLOW_NEGATIVE_CTYPE_INDEX */