From 7089a17c47ac9078f46b770a56657c2459024286 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 12 Jan 2006 09:20:53 -0500 Subject: [PATCH] COMP: Fix compile error that was caused by the binary flag --- Source/cmGeneratedFileStream.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx index 2a9b228ca..37b526a2a 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)