mirror of
https://github.com/reactos/CMake.git
synced 2025-02-22 21:11:43 +00:00
COMP: Fix compilation when VS6 is using the new ANSI stdlib
This commit is contained in:
parent
ef8735a240
commit
b95f198348
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user