BUG: fix build for cygwin

This commit is contained in:
Bill Hoffman 2001-11-15 08:43:02 -05:00
parent 1406eae1ba
commit ba62b9d94d

View File

@ -79,12 +79,14 @@ int main (int argc, char *argv[])
if(makeCommand.find(' ') != std::string::npos)
{
char *buffer = new char[makeCommand.size()+1];
#if defined(_WIN32) && !defined(__CYGWIN__)
if(GetShortPathName(makeCommand.c_str(), buffer,
makeCommand.size()+1) != 0)
{
makeCommand = buffer;
delete [] buffer;
}
#endif
}
makeCommand += " ";
makeCommand += executableName;