[libcxx-commits] [libcxx] [libc++] stddef.h needs to #include_next for the new clang __need_ macros (PR #86252)
Aaron Ballman via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 28 11:38:03 PDT 2024
================
@@ -7,16 +7,27 @@
//
//===----------------------------------------------------------------------===//
-#if defined(__need_ptrdiff_t) || defined(__need_size_t) || defined(__need_wchar_t) || defined(__need_NULL) || \
- defined(__need_wint_t)
+#if defined(__need_ptrdiff_t) || defined(__need_size_t) || defined(__need_rsize_t) || defined(__need_wchar_t) || \
----------------
AaronBallman wrote:
My understanding is that this is needed for interfacing with other CRTs (primarily Apple's?):
https://opensource.apple.com/source/Libc/Libc-825.26/include/stddef.h.auto.html
https://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20151005/140394.html
and was carried forward with newer functionality more recently:
https://reviews.llvm.org/D157757
https://github.com/llvm/llvm-project/pull/86252
More information about the libcxx-commits
mailing list