diff options
author | Mark Richardson <mark@elemtech.com> | 2006-04-27 20:02:52 (GMT) |
---|---|---|
committer | Mark Richardson <mark@elemtech.com> | 2006-04-27 20:02:52 (GMT) |
commit | 2b5d8e84c9055aed597ee163b291a05ae446e179 (patch) | |
tree | ad22f8c77c8d728a43bd1608bd0f851bff778f78 /Source | |
parent | 4e586c822fc959f2f8293af58677993c1d912dc5 (diff) | |
download | CMake-2b5d8e84c9055aed597ee163b291a05ae446e179.zip CMake-2b5d8e84c9055aed597ee163b291a05ae446e179.tar.gz CMake-2b5d8e84c9055aed597ee163b291a05ae446e179.tar.bz2 |
COMP: Fixing the the build for windows.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 6496f17..b92ded7 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/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) { |