summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-26 18:43:08 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-26 18:43:08 (GMT)
commitff9c167e64d90a27ec1c6c83b2cf465f7a0652fe (patch)
treeafecfe9695ef04d69540b902f2daf1872174f5c7 /Source
parent7a31bc85211529f6c0b49d3fda9d38edcac6a83b (diff)
downloadCMake-ff9c167e64d90a27ec1c6c83b2cf465f7a0652fe.zip
CMake-ff9c167e64d90a27ec1c6c83b2cf465f7a0652fe.tar.gz
CMake-ff9c167e64d90a27ec1c6c83b2cf465f7a0652fe.tar.bz2
BUG: Reverting previous change until it is further tested.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index e4ef96d..1e1b15f 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2617,11 +2617,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile,
{
std::string tempOutputFile = soutfile;
tempOutputFile += ".tmp";
- std::ofstream fout(tempOutputFile.c_str()
-#if defined(_WIN32) || defined(__CYGWIN__)
- , std::ios::out | std::ios::binary
-#endif
- );
+ std::ofstream fout(tempOutputFile.c_str());
if(!fout)
{
cmSystemTools::Error(
@@ -2630,11 +2626,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile,
cmSystemTools::ReportLastSystemError("");
return 0;
}
- std::ifstream fin(sinfile.c_str()
-#if defined(_WIN32) || defined(__CYGWIN__)
- , std::ios::in | std::ios::binary
-#endif
- );
+ std::ifstream fin(sinfile.c_str());
if(!fin)
{
cmSystemTools::Error("Could not open file for read in copy operation ",