[libcxx-commits] [libcxx] [libc++] stddef.h needs to #include_next for the new clang __need_ macros (PR #86252)

Ian Anderson via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 27 19:33:12 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) ||       \
----------------
ian-twilightcoder wrote:

Put another way, the clean version of the header you have above would fail https://github.com/llvm/llvm-project/pull/86252/files#diff-8313c215ed432925f43b313f4a1949bce7ece47e4b23ed1eb31fb5dd8df31a8cR46

https://github.com/llvm/llvm-project/pull/86252


More information about the libcxx-commits mailing list