[newlib-cygwin/cygwin-3_6-branch] Cygwin: uchar.h: define char16_t / char32_t in terms of __char16_t / __char32_t
Corinna Vinschen
corinna@sourceware.org
Thu Feb 12 20:32:45 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a9fb0ea868394192961bffd9ef0e275aaa570c67
commit a9fb0ea868394192961bffd9ef0e275aaa570c67
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Mon Feb 9 16:18:51 2026 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Feb 12 21:15:36 2026 +0100
Cygwin: uchar.h: define char16_t / char32_t in terms of __char16_t / __char32_t
Now that we have base definitions for these types, use them.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
(cherry picked from commit 68379130ff5d92c22bce87051ec42a5b2a06786e)
Diff:
---
winsup/cygwin/include/uchar.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/winsup/cygwin/include/uchar.h b/winsup/cygwin/include/uchar.h
index 032a380b0a15..67e221cde115 100644
--- a/winsup/cygwin/include/uchar.h
+++ b/winsup/cygwin/include/uchar.h
@@ -11,8 +11,8 @@ typedef unsigned char char8_t;
/* C++11 already defines those types. */
#if !defined (__cplusplus) || (__cplusplus - 0 < 201103L)
-typedef __uint_least16_t char16_t;
-typedef __uint_least32_t char32_t;
+typedef __char16_t char16_t;
+typedef __char32_t char32_t;
#endif
__BEGIN_DECLS
More information about the Cygwin-cvs
mailing list