diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-09-04 18:16:55 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-09-04 18:16:55 +0000 |
commit | efa077ce22ce17d6bfd6045e337121b0ff01935a (patch) | |
tree | 681178f3fcbc3627fdfcad3f3ce24aee178596f2 /newlib/libc/include/sys/config.h | |
parent | ca558bf047d7fc6f596902553fcf2e40c7fd6a42 (diff) | |
download | cygnal-efa077ce22ce17d6bfd6045e337121b0ff01935a.tar.gz cygnal-efa077ce22ce17d6bfd6045e337121b0ff01935a.tar.bz2 cygnal-efa077ce22ce17d6bfd6045e337121b0ff01935a.zip |
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.
Diffstat (limited to 'newlib/libc/include/sys/config.h')
-rw-r--r-- | newlib/libc/include/sys/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index d8bdc9c36..fd5e19bfa 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -170,4 +170,11 @@ #define _READ_WRITE_RETURN_TYPE int #endif +#ifndef __WCHAR_MAX__ +#if __INT_MAX__ == 32767 || defined(__CYGWIN__) || \ + defined (_WIN32) || defined(GO32) +#define __WCHAR_MAX__ 0xffffu +#endif +#endif + #endif /* __SYS_CONFIG_H__ */ |