diff options
Diffstat (limited to 'cpp/src/IcePatch2/OS.cpp')
-rw-r--r-- | cpp/src/IcePatch2/OS.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2/OS.cpp b/cpp/src/IcePatch2/OS.cpp index b4944d5bdc4..61decba5332 100644 --- a/cpp/src/IcePatch2/OS.cpp +++ b/cpp/src/IcePatch2/OS.cpp @@ -22,6 +22,11 @@ using namespace std; using namespace OS; #ifdef _WIN32 +int +OS::osstat(const string& path, structstat* buf) +{ + return ::_wstat(IceUtil::stringToWstring(path).c_str(), buf); +} int OS::remove(const string& path) @@ -74,6 +79,12 @@ OS::getcwd(string& cwd) #else int +OS::osstat(const string& path, structstat* buf) +{ + return ::stat(path.c_str(), buf); +} + +int OS::remove(const string& path) { return ::remove(path.c_str()); |