diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-08 07:21:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-08 07:21:59 +0000 |
commit | 8d6a5eff39039d3f497428fa660f56e81d799b08 (patch) | |
tree | 773d644bc52266c6793c28dfab3d083c9939b32f /ctype | |
parent | db873f322bdefd03e68e7196277aee44fc021791 (diff) | |
download | glibc-8d6a5eff39039d3f497428fa660f56e81d799b08.tar glibc-8d6a5eff39039d3f497428fa660f56e81d799b08.tar.gz glibc-8d6a5eff39039d3f497428fa660f56e81d799b08.tar.bz2 glibc-8d6a5eff39039d3f497428fa660f56e81d799b08.zip |
Update.
1999-06-08 Ulrich Drepper <drepper@cygnus.com>
* ctype/ctype.h: Protect __tobody code by __extension__.
Diffstat (limited to 'ctype')
-rw-r--r-- | ctype/ctype.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/ctype/ctype.h b/ctype/ctype.h index 11f92068d4..218ebe9048 100644 --- a/ctype/ctype.h +++ b/ctype/ctype.h @@ -165,20 +165,21 @@ toupper (int __c) __THROW #if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus # define __tobody(c, f, a) \ - ({ int __res; \ - if (sizeof (c) > 1) \ - { \ - if (__builtin_constant_p (c)) \ - { \ - int __c = (c); \ - __res = __c < -128 || __c > 255 ? __c : a[__c]; \ - } \ - else \ - __res = f (c); \ - } \ - else \ - __res = a[(int) (c)]; \ - __res; }) + (__extension__ + ({ int __res; \ + if (sizeof (c) > 1) \ + { \ + if (__builtin_constant_p (c)) \ + { \ + int __c = (c); \ + __res = __c < -128 || __c > 255 ? __c : a[__c]; \ + } \ + else \ + __res = f (c); \ + } \ + else \ + __res = a[(int) (c)]; \ + __res; })) # define tolower(c) __tobody (c, tolower, __ctype_tolower) # define toupper(c) __tobody (c, toupper, __ctype_toupper) |