]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
locale-inst.cc (__codecvt_abstract_base): Put inside _GLIBCPP_USE_WCHAR_T ifdef.
authorSteve Ellcey <sje@cup.hp.com>
Mon, 10 Jun 2002 21:15:05 +0000 (21:15 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Mon, 10 Jun 2002 21:15:05 +0000 (21:15 +0000)
* 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: r54455

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/include/bits/ostream.tcc
libstdc++-v3/src/locale-inst.cc

index c9ebc0b67ca2c4dedcfc83a1b0349e74b643acc0..51f6c7ca0b6db141bea7a2f026f307ae87d80280 100644 (file)
@@ -1,3 +1,16 @@
+2002-06-10  Steve Ellcey  <sje@cup.hp.com>
+
+       * 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-08  Paolo Carlini  <pcarlini@unitus.it>
 
        * testsuite/backwards/strstream_members.cc: New.
index f7f8d6977891880e4aedf38b8d2833c95216c7df..2658866ec5784c94d993b4d9b2182314d1980b0e 100644 (file)
@@ -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<wchar_t>;
   extern template wistream& ws(wistream&);
   extern template wistream& operator>>(wistream&, wchar_t&);
   extern template wistream& operator>>(wistream&, wchar_t*);
+#endif
 } // namespace std
index 71e4d888dacc1ab9e51e9005f43ff851f446e33f..ce90dafa20972ac541e3e86bbd12b247679e67d2 100644 (file)
@@ -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<wchar_t>;
   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
index 7ac147f9fa000912e844e7bb4d95c4e0d3df7467..10f45eca0a0709efde5016b397e68408d1e9afb1 100644 (file)
@@ -181,9 +181,9 @@ namespace std
   
   // codecvt
   inline template class __codecvt_abstract_base<char, char, mbstate_t>;
-  inline template class __codecvt_abstract_base<wchar_t, char, mbstate_t>;
   template class codecvt_byname<char, char, mbstate_t>;
 #ifdef _GLIBCPP_USE_WCHAR_T
+  inline template class __codecvt_abstract_base<wchar_t, char, mbstate_t>;
   template class codecvt_byname<wchar_t, char, mbstate_t>;
 #endif