Skip to content
Snippets Groups Projects
Commit b95048ad authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

COMP: Fix compilation when VS6 is using the new ANSI stdlib

parent a486967b
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,12 @@ public:
{
stringstream_cleanup cleanup(*this);
stringstream_cleanup::IgnoreUnusedVariable(cleanup);
// Visual Studio 6 has a strstream::pcount, but this is not rdbuf()->pcount()
#if (@KWSYS_NAMESPACE@_IOS_USE_STRSTREA_H) && defined(_MSC_VER) && (_MSC_VER == 1200)
int count = this->pcount();
#else
int count = this->rdbuf()->pcount();
#endif
const char* ptr = this->Superclass::str();
return kwsys_stl::string(ptr?ptr:"", count);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment