COMP: fix build on Windows with gcc, patch from Maik Beckmann

Alex
This commit is contained in:
Alexander Neundorf 2008-01-03 04:19:30 -05:00
parent 38ed52fe14
commit b6918bd9a4
1 changed files with 2 additions and 1 deletions

View File

@ -232,7 +232,8 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
// Open the specified file.
#if defined(_WIN32) || defined(__CYGWIN__)
std::ifstream file(fileName.c_str(), std::ios::in | (hexOutputArg.IsEnabled()?std::ios::binary:0));
std::ifstream file(fileName.c_str(), std::ios::in |
(hexOutputArg.IsEnabled() ? std::ios::binary : std::ios::in));
#else
std::ifstream file(fileName.c_str(), std::ios::in);
#endif