diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2019-12-12 07:23:34 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2019-12-12 07:23:34 +0000 |
commit | 5345a1906a5dbdcbc7c528cb2400a4e78b441b0e (patch) | |
tree | 5b159c0d3cf0ed5d49a6dd8baa1dfb7e5af55e74 /libstdc++-v3/include/tr1/cstdio | |
parent | 8bc1995989018df93c5cdb99179f732b9d511e0c (diff) | |
download | gcc-5345a1906a5dbdcbc7c528cb2400a4e78b441b0e.zip gcc-5345a1906a5dbdcbc7c528cb2400a4e78b441b0e.tar.gz gcc-5345a1906a5dbdcbc7c528cb2400a4e78b441b0e.tar.bz2 |
libstdc++: Fix tr1 definition ambiguity in versioned namespace
* include/tr1/cctype: Add _GLIBCXX_BEGIN_VERSION_NAMESPACE and
_GLIBCXX_END_VERSION_NAMESPACE.
* include/tr1/cfenv: Likewise.
* include/tr1/cinttypes: Likewise.
* include/tr1/cstdint: Likewise.
* include/tr1/cstdio: Likewise.
* include/tr1/cstdlib: Likewise.
* include/tr1/cwchar: Likewise.
* include/tr1/cwctype: Likewise.
From-SVN: r279272
Diffstat (limited to 'libstdc++-v3/include/tr1/cstdio')
-rw-r--r-- | libstdc++-v3/include/tr1/cstdio | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/include/tr1/cstdio b/libstdc++-v3/include/tr1/cstdio index 7d72e58..f8a9182 100644 --- a/libstdc++-v3/include/tr1/cstdio +++ b/libstdc++-v3/include/tr1/cstdio @@ -37,6 +37,8 @@ namespace std _GLIBCXX_VISIBILITY(default) { +_GLIBCXX_BEGIN_NAMESPACE_VERSION + namespace tr1 { using std::snprintf; @@ -46,6 +48,8 @@ namespace tr1 using std::vscanf; using std::vsscanf; } + +_GLIBCXX_END_NAMESPACE_VERSION } #endif |