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:
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/config.h7
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__ */