[libcxx-commits] [PATCH] D148542: [libc++] cuchar redeclares ::mbstate_t
Ian Anderson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 17 09:39:04 PDT 2023
iana created this revision.
iana added reviewers: ldionne, Mordante.
Herald added a subscriber: ributzka.
Herald added a project: All.
iana requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Have cuchar use ::mbstate_t from __mbstate_t.h instead of redeclaring it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148542
Files:
libcxx/include/cuchar
Index: libcxx/include/cuchar
===================================================================
--- libcxx/include/cuchar
+++ libcxx/include/cuchar
@@ -49,6 +49,10 @@
not be the case.
#endif
+#if !defined(_LIBCPP_CXX03_LANG)
+# include <__mbstate_t.h> // provides ::mbstate_t
+#endif
+
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
@@ -57,7 +61,6 @@
#if !defined(_LIBCPP_CXX03_LANG)
-using ::mbstate_t _LIBCPP_USING_IF_EXISTS;
using ::size_t _LIBCPP_USING_IF_EXISTS;
# if !defined(_LIBCPP_HAS_NO_C8RTOMB_MBRTOC8)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148542.514279.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230417/adbd4093/attachment-0001.bin>
More information about the libcxx-commits
mailing list