diff options
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; |