Fix borland build. Borland Run command should be static, since it is called with no object...

This commit is contained in:
Andy Cedilnik 2002-10-05 10:24:45 -04:00
parent a518fed4e3
commit 1ba0a05039
2 changed files with 5 additions and 4 deletions

View File

@ -1273,7 +1273,8 @@ bool RunCommandViaWin32(const char* command,
int timeout)
{
#if defined(__BORLANDC__)
return cmWin32ProcessExecution::BorlandRunCommand(command, dir, output, retVal,
return cmWin32ProcessExecution::BorlandRunCommand(command, dir, output,
retVal,
verbose, timeout);
#else // Visual studio
::SetLastError(ERROR_SUCCESS);

View File

@ -132,9 +132,9 @@ public:
* will display it in our app. Consequently, we check for input in
* our app and send it off to the write end of the stdin pipe.
*/
bool BorlandRunCommand(const char* command, const char* dir,
std::string& output, int& retVal, bool verbose,
int timeout);
static bool BorlandRunCommand(const char* command, const char* dir,
std::string& output, int& retVal, bool verbose,
int timeout);
private:
bool PrivateOpen(const char*, const char*, int, int);