Explorar o código

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

Bill Hoffman %!s(int64=21) %!d(string=hai) anos
pai
achega
8a70315bb4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
Source/kwsys/SystemTools.cxx

@@ -1647,7 +1647,7 @@ SystemTools::GetFilenameWithoutLastExtension(const kwsys_stl::string& filename)
 bool SystemTools::FileIsFullPath(const char* 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.
   if(name.length() < 2)
     {