summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/FileUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceUtil/FileUtil.cpp')
-rw-r--r--cpp/src/IceUtil/FileUtil.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/FileUtil.cpp b/cpp/src/IceUtil/FileUtil.cpp
index f5254c6a38e..67f1569fdc0 100644
--- a/cpp/src/IceUtil/FileUtil.cpp
+++ b/cpp/src/IceUtil/FileUtil.cpp
@@ -162,6 +162,16 @@ IceUtilInternal::unlink(const string& path)
return _wunlink(IceUtil::stringToWstring(path).c_str());
}
+int
+IceUtilInternal::close(int fd)
+{
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+ return _close(fd);
+#else
+ return ::close(fd);
+#endif
+}
+
#ifdef _STLP_BEGIN_NAMESPACE
namespace
{
@@ -391,6 +401,12 @@ IceUtilInternal::unlink(const string& path)
return ::unlink(path.c_str());
}
+int
+IceUtilInternal::close(int fd)
+{
+ return ::close(fd);
+}
+
IceUtilInternal::ifstream::ifstream()
{
}