From 3522a91b8029058d4b7a06d8f5b4932f6a35dfc4 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Fri, 7 Jun 2002 22:06:38 +0000 Subject: [PATCH] locale-inst.cc (__codecvt_abstract_base): Put inside _GLIBCPP_USE_WCHAR_T ifdef. * src/locale-inst.cc (__codecvt_abstract_base): Put inside _GLIBCPP_USE_WCHAR_T ifdef. * include/bits/istream.tcc (basic_istream): Ditto. (ws) Ditto. (operator>>) Ditto. * include/bits/ostream.tcc (basic_ostream): Ditto. (endl): Ditto. (ends): Ditto. (flush): Ditto. (operator<<): Ditto. From-SVN: r54351 --- libstdc++-v3/ChangeLog | 13 +++++++++++++ libstdc++-v3/include/bits/istream.tcc | 2 ++ libstdc++-v3/include/bits/ostream.tcc | 2 ++ libstdc++-v3/src/locale-inst.cc | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2f7993b663b..960b335711b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,16 @@ +2002-06-07 Steve Ellcey + + * src/locale-inst.cc (__codecvt_abstract_base): + Put inside _GLIBCPP_USE_WCHAR_T ifdef. + * include/bits/istream.tcc (basic_istream): Ditto. + (ws) Ditto. + (operator>>) Ditto. + * include/bits/ostream.tcc (basic_ostream): Ditto. + (endl): Ditto. + (ends): Ditto. + (flush): Ditto. + (operator<<): Ditto. + 2002-06-07 Phil Edwards * mkcheck.in: Link against local testsuite library. diff --git a/libstdc++-v3/include/bits/istream.tcc b/libstdc++-v3/include/bits/istream.tcc index f7f8d697789..2658866ec57 100644 --- a/libstdc++-v3/include/bits/istream.tcc +++ b/libstdc++-v3/include/bits/istream.tcc @@ -1221,8 +1221,10 @@ namespace std extern template istream& operator>>(istream&, unsigned char*); extern template istream& operator>>(istream&, signed char*); +#ifdef _GLIBCPP_USE_WCHAR_T extern template class basic_istream; extern template wistream& ws(wistream&); extern template wistream& operator>>(wistream&, wchar_t&); extern template wistream& operator>>(wistream&, wchar_t*); +#endif } // namespace std diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc index 71e4d888dac..ce90dafa209 100644 --- a/libstdc++-v3/include/bits/ostream.tcc +++ b/libstdc++-v3/include/bits/ostream.tcc @@ -694,6 +694,7 @@ namespace std extern template ostream& operator<<(ostream&, const unsigned char*); extern template ostream& operator<<(ostream&, const signed char*); +#ifdef _GLIBCPP_USE_WCHAR_T extern template class basic_ostream; extern template wostream& endl(wostream&); extern template wostream& ends(wostream&); @@ -702,4 +703,5 @@ namespace std extern template wostream& operator<<(wostream&, char); extern template wostream& operator<<(wostream&, const wchar_t*); extern template wostream& operator<<(wostream&, const char*); +#endif } // namespace std diff --git a/libstdc++-v3/src/locale-inst.cc b/libstdc++-v3/src/locale-inst.cc index 7ac147f9fa0..10f45eca0a0 100644 --- a/libstdc++-v3/src/locale-inst.cc +++ b/libstdc++-v3/src/locale-inst.cc @@ -181,9 +181,9 @@ namespace std // codecvt inline template class __codecvt_abstract_base; - inline template class __codecvt_abstract_base; template class codecvt_byname; #ifdef _GLIBCPP_USE_WCHAR_T + inline template class __codecvt_abstract_base; template class codecvt_byname; #endif -- 2.11.4.GIT