mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-14 16:56:04 +00:00
23 lines
521 B
C
23 lines
521 B
C
#include <ctype.h>
|
|
|
|
#if (defined(__GNUC__) && !defined(__CHAR_UNSIGNED__) && !defined(COMPACT_CTYPE)) || defined (__CYGWIN__)
|
|
#define ALLOW_NEGATIVE_CTYPE_INDEX
|
|
#endif
|
|
|
|
#ifdef ALLOW_NEGATIVE_CTYPE_INDEX
|
|
|
|
#ifndef __CYGWIN__
|
|
extern _CONST char _ctype_b[];
|
|
#else
|
|
extern char _ctype_b[];
|
|
#endif
|
|
# define DEFAULT_CTYPE_PTR ((char *) _ctype_b + 127)
|
|
|
|
#else /* !ALLOW_NEGATIVE_CTYPE_INDEX */
|
|
|
|
/* _ctype_ is declared in <ctype.h>. */
|
|
# define DEFAULT_CTYPE_PTR ((char *) _ctype_)
|
|
|
|
#endif /* !ALLOW_NEGATIVE_CTYPE_INDEX */
|
|
|