diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-05-08 15:23:42 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-05-08 15:23:42 -0230 |
commit | 5a0ec1672a8706c81f7bddc6bc51f026db1362fc (patch) | |
tree | eb04193decf9868f5859b7090ace41aa652f6182 /cpp/src/IceUtil/OutputUtil.cpp | |
parent | Bug 3409 - add sequence checking to ruby/python (diff) | |
download | ice-5a0ec1672a8706c81f7bddc6bc51f026db1362fc.tar.bz2 ice-5a0ec1672a8706c81f7bddc6bc51f026db1362fc.tar.xz ice-5a0ec1672a8706c81f7bddc6bc51f026db1362fc.zip |
Bug 3699 - improper case for generated file names
Diffstat (limited to 'cpp/src/IceUtil/OutputUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/OutputUtil.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/OutputUtil.cpp b/cpp/src/IceUtil/OutputUtil.cpp index 9b8612c4d7b..5a398c84ce6 100644 --- a/cpp/src/IceUtil/OutputUtil.cpp +++ b/cpp/src/IceUtil/OutputUtil.cpp @@ -90,6 +90,15 @@ IceUtilInternal::OutputBase::~OutputBase() void 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 _fout.open(s); } |