diff options
Diffstat (limited to 'libstdc++-v3/include/c_std/std_cctype.h')
-rw-r--r-- | libstdc++-v3/include/c_std/std_cctype.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libstdc++-v3/include/c_std/std_cctype.h b/libstdc++-v3/include/c_std/std_cctype.h index 65a4214657c..b6151c308f4 100644 --- a/libstdc++-v3/include/c_std/std_cctype.h +++ b/libstdc++-v3/include/c_std/std_cctype.h @@ -63,6 +63,27 @@ #undef tolower #undef toupper +/* APPLE LOCAL begin supply missing ctype.h decls 2001-07-11 sts */ +/* These are supposed be in ctype.h like the standard says! We need + this until Darwin ctype.h gets fixed and/or GCC has a fixincludes + to supply these if they're missing. */ +#if defined(__APPLE__) && defined(__MACH__) +extern "C" { +extern int isalnum(int c); +extern int isalpha(int c); +extern int iscntrl(int c); +extern int isdigit(int c); +extern int isgraph(int c); +extern int islower(int c); +extern int isprint(int c); +extern int ispunct(int c); +extern int isspace(int c); +extern int isupper(int c); +extern int isxdigit(int c); +} +#endif +/* APPLE LOCAL end supply missing ctype.h decls 2001-07-11 sts */ + namespace std { using ::isalnum; |