[PATCH] D44604: Make stdarg.h compatible with FreeBSD

Kamil Rytarowski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 17 19:41:01 PDT 2018


krytarowski added a comment.

This does not fix the potential problem on NetBSD. We define `__VA_LIST_DECLARED` (with extra `_` on the beginning).

The proper solution looks to go for:

  #if __STDC_HOSTED__ && __has_include_next(<stdarg.h>)


Repository:
  rC Clang

https://reviews.llvm.org/D44604





More information about the cfe-commits mailing list