Message ID | 20240119151546.537432-1-ppalka@redhat.com |
---|---|
State | New |
Headers | show |
Series | libstdc++: Add <print> and <text_encoding> to stdc++.h | expand |
On Fri, 19 Jan 2024 at 15:16, Patrick Palka <ppalka@redhat.com> wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? OK. This was on my TODO list after somebody asked about <bits/stdc++.h> on IRC this week, so thanks for doing it. > > -- >8 -- > > libstdc++-v3/ChangeLog: > > * include/precompiled/stdc++.h [_GLIBCXX_HOSTED]: Include > <print> and <text_encoding> for C++23 and C++26 respectively. > --- > libstdc++-v3/include/precompiled/stdc++.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h > index a1db96cbb64..3eef20d1645 100644 > --- a/libstdc++-v3/include/precompiled/stdc++.h > +++ b/libstdc++-v3/include/precompiled/stdc++.h > @@ -223,6 +223,7 @@ > #if __cplusplus > 202002L > #include <expected> > #include <generator> > +#include <print> > #include <spanstream> > #if __has_include(<stacktrace>) > # include <stacktrace> > @@ -231,4 +232,8 @@ > #include <stdfloat> > #endif > > +#if __cplusplus > 202302L > +#include <text_encoding> > +#endif > + > #endif // HOSTED > -- > 2.43.0.367.g186b115d30 >
diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index a1db96cbb64..3eef20d1645 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -223,6 +223,7 @@ #if __cplusplus > 202002L #include <expected> #include <generator> +#include <print> #include <spanstream> #if __has_include(<stacktrace>) # include <stacktrace> @@ -231,4 +232,8 @@ #include <stdfloat> #endif +#if __cplusplus > 202302L +#include <text_encoding> +#endif + #endif // HOSTED