diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-07 19:49:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-07 19:49:57 (GMT) |
commit | 61ec323b6a1c4e5a44331014447e3d1d31dc1b6b (patch) | |
tree | 654e5967568b6c8367071380e55b6c7a59491110 /Source/cmSystemTools.cxx | |
parent | 4b2d48051f610a312497500bf647222dac95ea5e (diff) | |
download | CMake-61ec323b6a1c4e5a44331014447e3d1d31dc1b6b.zip CMake-61ec323b6a1c4e5a44331014447e3d1d31dc1b6b.tar.gz CMake-61ec323b6a1c4e5a44331014447e3d1d31dc1b6b.tar.bz2 |
ENH: compile with broken 720 SGI C++ compiler
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 136728e..9755aca 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -710,14 +710,20 @@ void cmSystemTools::cmCopyFile(const char* source, const int buffer_length = 4096; char buffer[buffer_length]; std::ifstream fin(source, - std::ios::binary | std::ios::in); +#ifdef _WIN32 + std::ios::binary | +#endif + std::ios::in); if(!fin) { cmSystemTools::Error("CopyFile failed to open input file \"", source, "\""); } std::ofstream fout(destination, - std::ios::binary | std::ios::out | std::ios::trunc); +#ifdef _WIN32 + std::ios::binary | +#endif + std::ios::out | std::ios::trunc); if(!fout) { cmSystemTools::Error("CopyFile failed to open output file \"", |