BUG: fix for try run failing on some cygwin builds. Allow a driver letter to start a full path on cygwin

This commit is contained in:
Bill Hoffman 2004-08-09 17:42:27 -04:00
parent 63e6237600
commit 8a70315bb4
1 changed files with 1 additions and 1 deletions

View File

@ -1647,7 +1647,7 @@ SystemTools::GetFilenameWithoutLastExtension(const kwsys_stl::string& filename)
bool SystemTools::FileIsFullPath(const char* in_name) bool SystemTools::FileIsFullPath(const char* in_name)
{ {
kwsys_stl::string name = in_name; kwsys_stl::string name = in_name;
#if defined(_WIN32) #if defined(_WIN32) || defined(__CYGWIN__)
// On Windows, the name must be at least two characters long. // On Windows, the name must be at least two characters long.
if(name.length() < 2) if(name.length() < 2)
{ {