COMP: fix build on Windows with gcc, patch from Maik Beckmann
Alex
This commit is contained in:
parent
38ed52fe14
commit
b6918bd9a4
|
@ -232,7 +232,8 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
|
||||||
|
|
||||||
// Open the specified file.
|
// Open the specified file.
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#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
|
#else
|
||||||
std::ifstream file(fileName.c_str(), std::ios::in);
|
std::ifstream file(fileName.c_str(), std::ios::in);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue