More minor issues found while building libstdc++-v3 in gcc mainline for FreeBSD (with patch) 3/3
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Mon Apr 24 22:22:00 GMT 2000
2000-04-24 Loren J. Rittle <ljrittle@acm.org>
* src/string-inst.cc: Don't try to build specialization based
on wchar_t if _GLIBCPP_USE_WCHAR_T is not defined.
Index: libstdc++-v3/src/string-inst.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/src/string-inst.cc,v
retrieving revision 1.1
diff -p -r1.1 string-inst.cc
*** string-inst.cc 2000/04/21 20:33:33 1.1
--- string-inst.cc 2000/04/25 04:01:42
*************** namespace std
*** 295,301 ****
char* __retval = strchr(__beg, __c);
return (__retval ? __retval : __end);
}
! #else
template<>
const wchar_t*
wstring::_S_find(const wchar_t* __beg, const wchar_t* __end, wchar_t __c)
--- 295,301 ----
char* __retval = strchr(__beg, __c);
return (__retval ? __retval : __end);
}
! #elif _GLIBCPP_USE_WCHAR_T
template<>
const wchar_t*
wstring::_S_find(const wchar_t* __beg, const wchar_t* __end, wchar_t __c)
More information about the Libstdc++
mailing list