This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Obvious patch
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 6 Jun 2002 14:16:54 -0700 (PDT)
- Subject: Obvious patch
- Reply-to: sje at cup dot hp dot com
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