diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-11-20 03:30:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-11-20 03:30:53 +0000 |
commit | 7a7b103e9c6f4d7329383afec796e99d4a05ddf2 (patch) | |
tree | d322d3aad9421da662f4fe9737a72ec11d45be6c /include | |
parent | 04ff63f0f8db73f148b7c7560f037f8a422a0f97 (diff) |
Patch from Aidan Van Dyk to make _toupper and _tolower
work properly, reverting my wrong reading of SuSv3
Diffstat (limited to 'include')
-rw-r--r-- | include/ctype.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ctype.h b/include/ctype.h index 96ca2b61b..c6faf3d9b 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -72,8 +72,8 @@ extern int isxupper(int c) __THROW; /* uClibc-specific. */ #define __isascii(c) (((c) & ~0x7f) == 0) #define __toascii(c) ((c) & 0x7f) -#define _tolower(c) (isupper(c) ? tolower(c) : (c)) -#define _toupper(c) (islower(c) ? toupper(c) : (c)) +#define _toupper(c) ((c) ^ 0x20) +#define _tolower(c) ((c) | 0x20) /* For compatibility with older versions of uClibc. Are these ever used? */ |