Fixed non-standard usage of mbtowcs (added std:: prefix).

[SVN r10421]
This commit is contained in:
John Maddock
2001-06-25 11:29:47 +00:00
parent 56447e1443
commit 2fd9ef66cc

View File

@ -152,6 +152,10 @@ istream& get_line(istream& is, nstring_type& s, char delim)
return is; return is;
} }
#ifdef BOOST_NO_STDC_NAMESPACE
namespace std{ using ::mbtowc; }
#endif
istream& get_line(istream& is, string_type& s, char delim) istream& get_line(istream& is, string_type& s, char delim)
{ {
nstring_type t; nstring_type t;
@ -164,7 +168,7 @@ istream& get_line(istream& is, string_type& s, char delim)
int cchars; int cchars;
while(i != j) while(i != j)
{ {
cchars = mbtowc(buf, i, j - i); cchars = std::mbtowc(buf, i, j - i);
if(cchars == -1) if(cchars == -1)
break; break;
if(cchars == 0) if(cchars == 0)