aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include/wchar.h
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-09-04 18:16:55 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-09-04 18:16:55 +0000
commitefa077ce22ce17d6bfd6045e337121b0ff01935a (patch)
tree681178f3fcbc3627fdfcad3f3ce24aee178596f2 /newlib/libc/include/wchar.h
parentca558bf047d7fc6f596902553fcf2e40c7fd6a42 (diff)
downloadnewlib-efa077ce22ce17d6bfd6045e337121b0ff01935a.zip
newlib-efa077ce22ce17d6bfd6045e337121b0ff01935a.tar.gz
newlib-efa077ce22ce17d6bfd6045e337121b0ff01935a.tar.bz2
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/wchar.h')
-rw-r--r--newlib/libc/include/wchar.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index 06c187e..ec95162 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -19,6 +19,16 @@
# define WEOF ((wint_t)-1)
#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
#define MBSTATE_T
typedef _mbstate_t mbstate_t;