[PATCH] D157793: [Headers] Add missing __need_ macros to stdarg.h

Ian Anderson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 13 21:35:35 PDT 2023


iana added a comment.

In D157793#4583663 <https://reviews.llvm.org/D157793#4583663>, @MaskRay wrote:

>> Apple needs a __need_ macro for va_list. Add one, and also ones for va_start/va_arg/va_end, __va_copy, va_copy.
>
> Do you have a link to the specification or the source that this is needed?

We need is so that our <sys/_types/_va_list.h> doesn't have to redeclare va_list and doesn't pull in all of stdarg.h either. As far as I know there's no specification for this (or stddef.h) being include-able in pieces.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157793/new/

https://reviews.llvm.org/D157793



More information about the cfe-commits mailing list