2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
        * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
        __WCHAR_MAX__ or 0x7fffffffu.
        * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
        * libc/string/wcsncmp.c: Ditto.
			
			
This commit is contained in:
		| @@ -1,3 +1,11 @@ | |||||||
|  | 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp> | ||||||
|  |  | ||||||
|  |         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__. | ||||||
|  |         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as | ||||||
|  |         __WCHAR_MAX__ or 0x7fffffffu. | ||||||
|  |         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast. | ||||||
|  |         * libc/string/wcsncmp.c: Ditto. | ||||||
|  |  | ||||||
| 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com> | 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com> | ||||||
|  |  | ||||||
| 	* libc/string/wcschr.c: Add include of <stddef.h>. | 	* libc/string/wcschr.c: Add include of <stddef.h>. | ||||||
|   | |||||||
| @@ -170,4 +170,11 @@ | |||||||
| #define _READ_WRITE_RETURN_TYPE int | #define _READ_WRITE_RETURN_TYPE int | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef __WCHAR_MAX__  | ||||||
|  | #if __INT_MAX__ == 32767 || defined(__CYGWIN__) || \ | ||||||
|  |     defined (_WIN32) || defined(GO32) | ||||||
|  | #define __WCHAR_MAX__ 0xffffu | ||||||
|  | #endif | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #endif /* __SYS_CONFIG_H__ */ | #endif /* __SYS_CONFIG_H__ */ | ||||||
|   | |||||||
| @@ -19,6 +19,16 @@ | |||||||
| # define WEOF ((wint_t)-1) | # define WEOF ((wint_t)-1) | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | #ifndef WCHAR_MIN | ||||||
|  | #define WCHAR_MIN 0 | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  | #ifdef __WCHAR_MAX__ | ||||||
|  | #define WCHAR_MAX __WCHAR_MAX__ | ||||||
|  | #else | ||||||
|  | #define WCHAR_MAX 0x7fffffffu | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #ifndef MBSTATE_T | #ifndef MBSTATE_T | ||||||
| #define MBSTATE_T | #define MBSTATE_T | ||||||
| typedef _mbstate_t mbstate_t; | typedef _mbstate_t mbstate_t; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user