[cmake-commits] alex committed cmFileCommand.cxx 1.91 1.92
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jan 3 04:19:32 EST 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv10102
Modified Files:
cmFileCommand.cxx
Log Message:
COMP: fix build on Windows with gcc, patch from Maik Beckmann
Alex
Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- cmFileCommand.cxx 2 Jan 2008 21:46:38 -0000 1.91
+++ cmFileCommand.cxx 3 Jan 2008 09:19:30 -0000 1.92
@@ -232,7 +232,8 @@
// 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
More information about the Cmake-commits
mailing list