summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-12 00:06:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-12 00:06:54 (GMT)
commit867c3a763e3183ef2c2f32e6c930ea49ae34a5f1 (patch)
tree2c883c05488d4f515c1d8e8e51ae9f528c6bcc08 /Source/cmGeneratedFileStream.cxx
parent0126fd06ade2b895381dd11caa3ccf2e7c63e7e5 (diff)
downloadCMake-867c3a763e3183ef2c2f32e6c930ea49ae34a5f1.zip
CMake-867c3a763e3183ef2c2f32e6c930ea49ae34a5f1.tar.gz
CMake-867c3a763e3183ef2c2f32e6c930ea49ae34a5f1.tar.bz2
ENH: Add support for binary
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index c48620e..2a9b228 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -62,13 +62,13 @@ cmGeneratedFileStream::~cmGeneratedFileStream()
//----------------------------------------------------------------------------
cmGeneratedFileStream&
-cmGeneratedFileStream::Open(const char* name, bool quiet)
+cmGeneratedFileStream::Open(const char* name, bool quiet, bool binary)
{
// Store the file name and construct the temporary file name.
this->cmGeneratedFileStreamBase::Open(name);
// Open the temporary output file.
- this->Stream::open(m_TempName.c_str());
+ this->Stream::open(m_TempName.c_str(), std::ios::out | (binary ? std::ios::binary : 0));
// Check if the file opened.
if(!*this && !quiet)