1999-06-08  Ulrich Drepper  <drepper@cygnus.com>

	* ctype/ctype.h: Protect __tobody code by __extension__.
This commit is contained in:
Ulrich Drepper 1999-06-08 07:21:59 +00:00
parent db873f322b
commit 8d6a5eff39
3 changed files with 271 additions and 204 deletions

View File

@ -1,3 +1,7 @@
1999-06-08 Ulrich Drepper <drepper@cygnus.com>
* ctype/ctype.h: Protect __tobody code by __extension__.
1999-06-07 Ulrich Drepper <drepper@cygnus.com>
* grp/fgetgrent.c (fgetgrent): Remember position of stream before

416
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -165,6 +165,7 @@ toupper (int __c) __THROW
#if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus
# define __tobody(c, f, a) \
(__extension__
({ int __res; \
if (sizeof (c) > 1) \
{ \
@ -178,7 +179,7 @@ toupper (int __c) __THROW
} \
else \
__res = a[(int) (c)]; \
__res; })
__res; }))
# define tolower(c) __tobody (c, tolower, __ctype_tolower)
# define toupper(c) __tobody (c, toupper, __ctype_toupper)