This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Obvious patch


I hope someone can check in this change as an obvious patch since all
uses of wchar_t should be inside the _GLIBCPP_USE_WCHAR_T ifdef.
I don't have write permssion so I can't check it in.

Steve Ellcey
sje@cup.hp.com

2002-06-06  Steve Ellcey  <sje@cup.hp.com>
	* gcc/libstdc++-v3/src/locale-inst.cc (__codecvt_abstract_base):
	Put inside _GLIBCPP_USE_WCHAR_T ifdef.


*** gcc.orig/libstdc++-v3/src/locale-inst.cc	Thu Jun  6 14:10:25 2002
--- gcc/libstdc++-v3/src/locale-inst.cc	Thu Jun  6 14:11:00 2002
*************** namespace std
*** 181,189 ****
    
    // 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
    template class codecvt_byname<wchar_t, char, mbstate_t>;
  #endif
  
--- 181,189 ----
    
    // codecvt
    inline template class __codecvt_abstract_base<char, 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
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]