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
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-01-27 14:55:01 +0300
committerCorinna Vinschen <corinna@vinschen.de>2011-01-27 14:55:01 +0300
commit7cc6d7cfc68c3b6ca6e6d4e4d8d458ea1d3399aa (patch)
tree7a2ce90dcd9aaff131e33e00a2b6fff938f3380d /newlib
parent40aca0688493bbc8d193354916c81b13e5043c93 (diff)
* libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.
* libc/include/wchar.h: Include features.h.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/features.h6
-rw-r--r--newlib/libc/include/wchar.h3
3 files changed, 14 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index d8642ca76..5fff8adbc 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-27 Corinna Vinschen <vinschen@redhat.com>
+
+ * libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.
+ * libc/include/wchar.h: Include features.h.
+
2011-01-15 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/types.h (ulong): Add typedef.
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index 2f862687c..b2e56daae 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
@@ -178,6 +178,12 @@ extern "C" {
/* #define _XOPEN_UNIX -1 */
#endif /* !__STRICT_ANSI__ || __cplusplus || __STDC_VERSION__ >= 199901L */
+
+/* The value corresponds to UNICODE version 4.0, which is the version
+ supported by XP. Newlib supports 5.2 (2011) but so far Cygwin needs
+ the MS conversions for double-byte charsets. */
+#define __STDC_ISO_10646__ 200305L
+
#endif /* __CYGWIN__ */
/* Per the permission given in POSIX.1-2008 section 2.2.1, define
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index 234c71e00..3cb12e25f 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -16,6 +16,9 @@
/* For _mbstate_t definition. */
#include <sys/_types.h>
+/* For __STDC_ISO_10646__ */
+#include <sys/features.h>
+
#ifndef NULL
#define NULL 0
#endif