switched string::compare to strncmp

This commit is contained in:
Phil Pritchett 2001-11-05 05:43:48 -05:00
parent d0b210aec0
commit 8476330979
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ void cmDSPWriter::OutputDSPFile()
// so don't build a projectfile for it
if ((l->second.GetType() != cmTarget::INSTALL_FILES)
&& (l->second.GetType() != cmTarget::INSTALL_PROGRAMS)
&& (l->first.compare(0,26, "INCLUDE_EXTERNAL_MSPROJECT") != 0))
&& (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) != 0))
{
this->CreateSingleDSP(l->first.c_str(),l->second);
}

View File

@ -172,7 +172,7 @@ void cmDSWWriter::WriteDSWFile(std::ostream& fout)
}
}
// Write the project into the DSW file
if (l->first.compare(0,26, "INCLUDE_EXTERNAL_MSPROJECT") == 0)
if (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0)
{
cmCustomCommand cc = l->second.GetCustomCommands()[0];