diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2002-12-04 16:53:59 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-12-04 16:53:59 +0000 |
| commit | 8f1134fbb356143214dbc55aa535f21d97a9c5d5 (patch) | |
| tree | 23d47b19d8ecbb91f1615f358dbb41e09e05fc12 /contrib/libstdc++/src/ios.cc | |
| parent | 45fc31f8dde65cd5b7930b1047a99745f440e9f3 (diff) | |
Notes
Diffstat (limited to 'contrib/libstdc++/src/ios.cc')
| -rw-r--r-- | contrib/libstdc++/src/ios.cc | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/contrib/libstdc++/src/ios.cc b/contrib/libstdc++/src/ios.cc index c1167f8c15cf..7bfdc5b4bb40 100644 --- a/contrib/libstdc++/src/ios.cc +++ b/contrib/libstdc++/src/ios.cc @@ -39,28 +39,34 @@ #include <bits/atomicity.h> #include <ext/stdio_filebuf.h> -namespace std +namespace __gnu_cxx { // Extern declarations for global objects in src/globals.cc. + extern stdio_filebuf<char> buf_cout; + extern stdio_filebuf<char> buf_cin; + extern stdio_filebuf<char> buf_cerr; + +#ifdef _GLIBCPP_USE_WCHAR_T + extern stdio_filebuf<wchar_t> buf_wcout; + extern stdio_filebuf<wchar_t> buf_wcin; + extern stdio_filebuf<wchar_t> buf_wcerr; +#endif +} // namespace __gnu_cxx + +namespace std +{ + using namespace __gnu_cxx; + extern istream cin; extern ostream cout; extern ostream cerr; extern ostream clog; - using __gnu_cxx::stdio_filebuf; - extern stdio_filebuf<char> buf_cout; - extern stdio_filebuf<char> buf_cin; - extern stdio_filebuf<char> buf_cerr; - #ifdef _GLIBCPP_USE_WCHAR_T extern wistream wcin; extern wostream wcout; extern wostream wcerr; extern wostream wclog; - - extern stdio_filebuf<wchar_t> buf_wcout; - extern stdio_filebuf<wchar_t> buf_wcin; - extern stdio_filebuf<wchar_t> buf_wcerr; #endif // Definitions for static const data members of __ios_flags. |
