comparison data/fileio/MatrixFile.cpp @ 233:0d943a3fcc77

...
author Chris Cannam
date Fri, 16 Feb 2007 13:00:17 +0000
parents 6ec58bb8f729
children 3e6fee4e4257
comparison
equal deleted inserted replaced
232:03a24547cf3c 233:0d943a3fcc77
109 m_flags = O_RDWR | O_CREAT; 109 m_flags = O_RDWR | O_CREAT;
110 } else { 110 } else {
111 m_flags = O_RDONLY; 111 m_flags = O_RDONLY;
112 } 112 }
113 113
114 #ifdef _WIN32
115 m_flags |= O_BINARY;
116 #endif
117
114 #ifdef DEBUG_MATRIX_FILE 118 #ifdef DEBUG_MATRIX_FILE
115 std::cerr << "MatrixFile::MatrixFile: opening " << fileName.toStdString() << "..." << std::endl; 119 std::cerr << "MatrixFile::MatrixFile: opening " << fileName.toStdString() << "..." << std::endl;
116 #endif 120 #endif
117 121
118 if ((m_fd = ::open(fileName.toLocal8Bit(), m_flags, m_fmode)) < 0) { 122 if ((m_fd = ::open(fileName.toLocal8Bit(), m_flags, m_fmode)) < 0) {