Explorar el Código

COMP: Fixing the the build for windows.

Mark Richardson hace 19 años
padre
commit
2b5d8e84c9
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Source/kwsys/SystemTools.cxx

+ 3 - 1
Source/kwsys/SystemTools.cxx

@@ -118,12 +118,14 @@ inline int Rmdir(const char* dir)
 }
 inline const char* Getcwd(char* buf, unsigned int len)
 {
-  const char* ret _getcwd(buf, len);
+  const char* ret = _getcwd(buf, len);
   if(!ret)
     {
     fprintf(stderr, "No current working directory.\n");
     abort();
     }
+
+  return ret;
 }
 inline int Chdir(const char* dir)
 {