summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/OS.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-08-07 11:10:57 +0800
committerMatthew Newhook <matthew@zeroc.com>2009-08-07 11:10:57 +0800
commite47e08887c823824bfc36f102c065075737394b1 (patch)
treedcbb175cb6ba3204ac55a06d61d28c488227ab4f /cpp/src/IcePatch2/OS.cpp
parentRevert "4171 - Global namespace pollution" (diff)
downloadice-e47e08887c823824bfc36f102c065075737394b1.tar.bz2
ice-e47e08887c823824bfc36f102c065075737394b1.tar.xz
ice-e47e08887c823824bfc36f102c065075737394b1.zip
Revert "Changes for bug 3962 and 4714"
This reverts commit d38ad95e45c0083d602a43e6d77e6c1599f324fe.
Diffstat (limited to 'cpp/src/IcePatch2/OS.cpp')
-rw-r--r--cpp/src/IcePatch2/OS.cpp11
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());