From 2b533fac14bcd88f301ba926425ac4317c55de7e Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 15 May 2000 23:00:24 +0000 Subject: Mon May 15 18:54:00 2000 Jeff Johnston * libc/include/ctype.h: Changed tolower and toupper macros to use __extension__ to prevent pedantic warnings. --- newlib/libc/include/ctype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libc') diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h index 224b703ad..7c4f28adf 100644 --- a/newlib/libc/include/ctype.h +++ b/newlib/libc/include/ctype.h @@ -57,9 +57,9 @@ extern _CONST char _ctype_[] __declspec(dllimport); slightly slower */ #ifdef __GNUC__ # define toupper(c) \ - ({ int __x = (c); islower(__x) ? (__x - 'a' + 'A') : __x;}) + __extension__ ({ int __x = (c); islower(__x) ? (__x - 'a' + 'A') : __x;}) # define tolower(c) \ - ({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;}) + __extension__ ({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;}) #endif #ifndef __STRICT_ANSI__ -- cgit v1.2.3