Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/wchar.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 2f6ad7bf0..12a7376d4 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
+
+ * libc/include/wchar.h (WCHAR_MAX): Only define if not already
+ defined.
+
2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index ec95162a2..4cefc5d0a 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -23,11 +23,13 @@
#define WCHAR_MIN 0
#endif
+#ifndef WCHAR_MAX
#ifdef __WCHAR_MAX__
#define WCHAR_MAX __WCHAR_MAX__
#else
#define WCHAR_MAX 0x7fffffffu
#endif
+#endif
#ifndef MBSTATE_T
#define MBSTATE_T