summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/OutputUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceUtil/OutputUtil.cpp')
-rw-r--r--cpp/src/IceUtil/OutputUtil.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/src/IceUtil/OutputUtil.cpp b/cpp/src/IceUtil/OutputUtil.cpp
index 5a398c84ce6..a3bef50d681 100644
--- a/cpp/src/IceUtil/OutputUtil.cpp
+++ b/cpp/src/IceUtil/OutputUtil.cpp
@@ -8,6 +8,7 @@
// **********************************************************************
#include <IceUtil/OutputUtil.h>
+#include <IceUtil/FileUtil.h>
#include <cstring>
using namespace std;
@@ -94,11 +95,7 @@ IceUtilInternal::OutputBase::open(const char* s)
// Remove any existing file first. This prevents file name
// mismatches on case-insensitive OSs.
//
-#ifdef _WIN32
- _unlink(s);
-#else
- unlink(s);
-#endif
+ IceUtilInternal::unlink(s);
_fout.open(s);
}