aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/mutex
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2023-03-27 15:29:08 +0200
committerArsen Arsenović <arsen@gcc.gnu.org>2023-08-16 15:16:25 +0200
commitb7b801b2f563b5f324805a85f5bea973a0daa65c (patch)
tree5153f35445e28137de939cb70ed78bf601927bb8 /libstdc++-v3/include/std/mutex
parentff572e8c9d31b1575f21db93b5b103ee17219226 (diff)
downloadgcc-b7b801b2f563b5f324805a85f5bea973a0daa65c.zip
gcc-b7b801b2f563b5f324805a85f5bea973a0daa65c.tar.gz
gcc-b7b801b2f563b5f324805a85f5bea973a0daa65c.tar.bz2
libstdc++: Implement more maintainable <version> header
This commit replaces the ad-hoc logic in <version> with an AutoGen database that (mostly) declaratively generates a version.h bit which combines all of the FTM logic across all headers together. This generated header defines macros of the form __glibcxx_foo, equivalent to their __cpp_lib_foo variants, according to rules specified in version.def and, optionally, if __glibcxx_want_foo or __glibcxx_want_all are defined, also defines __cpp_lib_foo forms with the same definition. libstdc++-v3/ChangeLog: * include/Makefile.am (bits_freestanding): Add version.h. (allcreated): Add version.h. (${bits_srcdir}/version.h): New rule. Regenerates version.h out of version.{def,tpl}. * include/Makefile.in: Regenerate. * include/bits/version.def: New file. Declares a list of all feature test macros, their values and their preconditions. * include/bits/version.tpl: New file. Turns version.def into a sequence of #if blocks. * include/bits/version.h: New file. Generated from version.def. * include/std/version: Replace with a __glibcxx_want_all define and bits/version.h include.
Diffstat (limited to 'libstdc++-v3/include/std/mutex')
0 files changed, 0 insertions, 0 deletions