summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-27 21:46:10 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-27 21:46:10 (GMT)
commitdc304cfdec774a26486272f43080098eee293ca7 (patch)
tree094ef7fd1856a2fc313682bc1be6f29cab3864e2 /Source
parent8d2c78f43cf1ba042bd9d9f719a9556ca8cf9b80 (diff)
downloadCMake-dc304cfdec774a26486272f43080098eee293ca7.zip
CMake-dc304cfdec774a26486272f43080098eee293ca7.tar.gz
CMake-dc304cfdec774a26486272f43080098eee293ca7.tar.bz2
ENH: remove code that does not compile, on windows cwd must exist
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemTools.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index b92ded7..5743492 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -118,15 +118,9 @@ inline int Rmdir(const char* dir)
}
inline const char* Getcwd(char* buf, unsigned int len)
{
- const char* ret = _getcwd(buf, len);
- if(!ret)
- {
- fprintf(stderr, "No current working directory.\n");
- abort();
- }
-
- return ret;
+ return _getcwd(buf, len);
}
+
inline int Chdir(const char* dir)
{
#if defined(__BORLANDC__)