[libc-commits] [PATCH] D74021: Created uChar implementation for libc
Marcus Johnson via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sat Feb 8 05:02:50 PST 2020
MarcusJohnson91 updated this revision to Diff 243363.
MarcusJohnson91 marked an inline comment as done.
MarcusJohnson91 added a comment.
uint_leastX_t -> __UINT_LEASTX__TYPE__ in char16_t and char32_t typedefs
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74021/new/
https://reviews.llvm.org/D74021
Files:
libc/include/uchar.h
Index: libc/include/uchar.h
===================================================================
--- libc/include/uchar.h
+++ libc/include/uchar.h
@@ -22,13 +22,13 @@
#if !defined(__cplusplus) && defined(__STDC_UTF_16__) && (__STDC_VERSION__ >= 201112L)
/* ISO9899:2011 7.28: Define char16_t if __STDC_UTF_32__ is set. */
#define __CHAR16_TYPE__
-typedef uint_least16_t char16_t;
+typedef __UINT_LEAST16__TYPE__ char16_t;
#endif /* __STDC_UTF_16__ */
#if !defined(__cplusplus) && defined(__STDC_UTF_32__) && (__STDC_VERSION__ >= 201112L)
/* ISO9899:2011 7.28: Define char32_t if __STDC_UTF_32__ is enabled. */
#define __CHAR32_TYPE__
-typedef uint_least32_t char32_t;
+typedef __UINT_LEAST32_TYPE__ char32_t;
#endif /* __STDC_UTF_32__ */
__BEGIN_C_DECLS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74021.243363.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200208/d32271de/attachment-0001.bin>
More information about the libc-commits
mailing list