summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-01-03 09:19:30 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-01-03 09:19:30 (GMT)
commitb6918bd9a47030a64e36f031cd5131ce58e338a3 (patch)
treec78ac7d0349aec2313d385aa2821e238f3542b0e /Source/cmFileCommand.cxx
parent38ed52fe145f6db2bd82e49308af2ba526f4e50a (diff)
downloadCMake-b6918bd9a47030a64e36f031cd5131ce58e338a3.zip
CMake-b6918bd9a47030a64e36f031cd5131ce58e338a3.tar.gz
CMake-b6918bd9a47030a64e36f031cd5131ce58e338a3.tar.bz2
COMP: fix build on Windows with gcc, patch from Maik Beckmann
Alex
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 1a12ddf..90d2d1d 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -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