diff options
author | Marc Laukien <marc@zeroc.com> | 2002-09-05 09:37:03 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-09-05 09:37:03 +0000 |
commit | 64535e61c3f45d59bf8b6ba45d674c1994bc151f (patch) | |
tree | 7c54b8cde2217a4d5bd5d66d2cd9d5d3e58ae6c6 /cpp/src/IcePatch/Client.cpp | |
parent | Oops, left a bit of cut-and-paste code behind that shouldn't have been (diff) | |
download | ice-64535e61c3f45d59bf8b6ba45d674c1994bc151f.tar.bz2 ice-64535e61c3f45d59bf8b6ba45d674c1994bc151f.tar.xz ice-64535e61c3f45d59bf8b6ba45d674c1994bc151f.zip |
fixes
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index 1fe50d674e3..bbf34ee8743 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -221,8 +221,13 @@ IcePatch::Client::run(int argc, char* argv[]) _remove = properties->getPropertyAsInt("IcePatch.RemoveOrphaned") > 0; if(_remove) { +#ifdef _WIN32 + char cwd[_MAX_PATH]; + _getcwd(cwd, _MAX_PATH); +#else char cwd[PATH_MAX]; getcwd(cwd, PATH_MAX); +#endif cout << "WARNING: All orphaned files in `" << cwd << "' will be removed." << endl; cout << "Do you want to proceed? (yes/no)" << endl; string answer; |