People worry about the lack of an everything include file for stdc like libstdc++ had for C++. Worry no more! Now you can also mindlessly use one pch for C!
Honestly, just std C headers is no where near big (and slow) enough to make people want to use pch. At least we should drag POSIX in.
This stuff is GPL 3+ with the GCC Runtime Library Exception 3.1. What does it mean? It means you do not need to worry about it turning your program GPLv3 as well, as long as you use this file as a "library". This is the same license terms used for libstdc++ and it did not making your code GPL, did it now?
See https://www.gnu.org/licenses/gcc-exception-3.1.en.html.
- Start with bits/stdc++.h
- Keep only the parts starting with
<c
. - Replace
<c([^>]+)>
with<$1.h>
. - Fix up version detection.
- Fix up comments for C89 compat.