based on patch by Sergey Dmitrouk.
int tolower(int);
int toupper(int);
+#ifndef __cplusplus
static __inline int __isspace(int _c)
{
return _c == ' ' || (unsigned)_c-'\t' < 5;
#define isprint(a) (((unsigned)(a)-0x20) < 0x5f)
#define isgraph(a) (((unsigned)(a)-0x21) < 0x5e)
#define isspace(a) __isspace(a)
+#endif
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
wint_t towlower(wint_t);
wint_t towupper(wint_t);
wctype_t wctype(const char *);
+
+#ifndef __cplusplus
#undef iswdigit
#define iswdigit(a) ((unsigned)(a)-'0' < 10)
#endif
+#endif
#ifdef __cplusplus
}
wctrans_t wctrans(const char *);
wctype_t wctype(const char *);
+#ifndef __cplusplus
#undef iswdigit
#define iswdigit(a) (((unsigned)(a)-L'0') < 10)
+#endif
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)