changeset 233:0d943a3fcc77

...
author Chris Cannam
date Fri, 16 Feb 2007 13:00:17 +0000
parents 03a24547cf3c
children fd331fac5f38
files data/fileio/MatrixFile.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/MatrixFile.cpp	Wed Feb 14 17:52:06 2007 +0000
+++ b/data/fileio/MatrixFile.cpp	Fri Feb 16 13:00:17 2007 +0000
@@ -111,6 +111,10 @@
         m_flags = O_RDONLY;
     }
 
+#ifdef _WIN32
+    m_flags |= O_BINARY;
+#endif
+
 #ifdef DEBUG_MATRIX_FILE
     std::cerr << "MatrixFile::MatrixFile: opening " << fileName.toStdString() << "..." << std::endl;
 #endif