summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-12 14:20:53 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-12 14:20:53 (GMT)
commit7089a17c47ac9078f46b770a56657c2459024286 (patch)
tree95f0ff5ed7aa4ac28308296777671c97f15e411a /Source/cmGeneratedFileStream.cxx
parentd9afb8e73c8077118e5340dcd2888c40a2caa210 (diff)
downloadCMake-7089a17c47ac9078f46b770a56657c2459024286.zip
CMake-7089a17c47ac9078f46b770a56657c2459024286.tar.gz
CMake-7089a17c47ac9078f46b770a56657c2459024286.tar.bz2
COMP: Fix compile error that was caused by the binary flag
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index 2a9b228..37b526a 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -68,7 +68,14 @@ cmGeneratedFileStream::Open(const char* name, bool quiet, bool binary)
this->cmGeneratedFileStreamBase::Open(name);
// Open the temporary output file.
- this->Stream::open(m_TempName.c_str(), std::ios::out | (binary ? std::ios::binary : 0));
+ if ( binary )
+ {
+ this->Stream::open(m_TempName.c_str(), std::ios::out | std::ios::binary);
+ }
+ else
+ {
+ this->Stream::open(m_TempName.c_str(), std::ios::out);
+ }
// Check if the file opened.
if(!*this && !quiet)