[libc-commits] [PATCH] D69421: [libc] Header generation scheme.

Fangrui Song via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Oct 25 00:11:21 PDT 2019


MaskRay added inline comments.


================
Comment at: libc/spec/stdc.td:1
+include "spec/spec.td"
+
----------------
Can you explain a bit more why we need a header generator?

If you want to make some declarations condition on feature macros, I think the usual approach is:

```
int foo(int);
int bar(int);

#if defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE)
int qux(int);
#endif
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69421





More information about the libc-commits mailing list