[PATCH] D137268: [clang][Headers] Do not define varargs macros for __need___va_list

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 3 16:00:56 PDT 2022


efriedma added inline comments.


================
Comment at: clang/lib/Headers/stdarg.h:21
+
+#ifdef __STDARG_H
 
----------------
Maybe the following is a little more readable?

```
#ifndef __STDARG_H

#ifndef __GNUC_VA_LIST
#define __GNUC_VA_LIST 1
typedef __builtin_va_list __gnuc_va_list;
#endif

#ifdef __need___va_list
#undef __need___va_list
#else
#define __STDARG_H
[...]
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137268



More information about the cfe-commits mailing list