diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2020-10-30 13:11:49 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2020-10-31 18:10:10 +0100 |
commit | de77abee118f1900fceb25c34b0cc1ef7261c9ce (patch) | |
tree | d44ff9355ab09c4bc031307912e49005e8709bcd /libstdc++-v3/src/c++20 | |
parent | 60d9f254876a00260992b2f37639ef4d82d9db8f (diff) |
libstdc++: Fix gnu-version-namespace buid
Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog
* src/c++17/floating_from_chars.cc (_GLIBCXX_USE_CX11_ABI): Add define.
(buffering_string): New.
[!_GLIBCXX_USE_CXX11_ABI](reserve_string): New.
(from_chars): Adapt.
* src/c++20/sstream-inst.cc: Limit instantiations to
_GLIBCXX_USE_CXX11_ABI.
Diffstat (limited to 'libstdc++-v3/src/c++20')
-rw-r--r-- | libstdc++-v3/src/c++20/sstream-inst.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/src/c++20/sstream-inst.cc b/libstdc++-v3/src/c++20/sstream-inst.cc index e04560d28c8..8c6840115c5 100644 --- a/libstdc++-v3/src/c++20/sstream-inst.cc +++ b/libstdc++-v3/src/c++20/sstream-inst.cc @@ -29,6 +29,7 @@ // Instantiations in this file are only for the new SSO std::string ABI #include <sstream> +#if _GLIBCXX_USE_CXX11_ABI namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -106,3 +107,5 @@ basic_stringstream<wchar_t>::view() const noexcept; _GLIBCXX_END_NAMESPACE_VERSION } + +#endif //_GLIBCXX_USE_CXX11_ABI |