aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-05-15 23:00:24 +0000
committerJeff Johnston <jjohnstn@redhat.com>2000-05-15 23:00:24 +0000
commit2b533fac14bcd88f301ba926425ac4317c55de7e (patch)
tree52e7912fdd850d67c4254350890cbfac73aa82d4 /newlib
parent75362a768be4a15953e4a30314ec695174049ef2 (diff)
downloadnewlib-2b533fac14bcd88f301ba926425ac4317c55de7e.zip
newlib-2b533fac14bcd88f301ba926425ac4317c55de7e.tar.gz
newlib-2b533fac14bcd88f301ba926425ac4317c55de7e.tar.bz2
Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/include/ctype.h: Changed tolower and toupper macros to use __extension__ to prevent pedantic warnings.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/ctype.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 735c47d..a955e67 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
+
+ * libc/include/ctype.h: Changed tolower and toupper macros
+ to use __extension__ to prevent pedantic warnings.
+
Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
* libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h
index 224b703..7c4f28a 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__