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.
			
			
This commit is contained in:
		| @@ -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> | Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com> | ||||||
|  |  | ||||||
| 	* libc/sys/rtems/sys/time.h: Add macros for manipulating timeval | 	* libc/sys/rtems/sys/time.h: Add macros for manipulating timeval | ||||||
|   | |||||||
| @@ -57,9 +57,9 @@ extern	_CONST char	_ctype_[] __declspec(dllimport); | |||||||
|    slightly slower */ |    slightly slower */ | ||||||
| #ifdef __GNUC__ | #ifdef __GNUC__ | ||||||
| # define toupper(c) \ | # 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) \ | # define tolower(c) \ | ||||||
| 	({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;}) | 	__extension__ ({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;}) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifndef __STRICT_ANSI__ | #ifndef __STRICT_ANSI__ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user