We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cabd97 commit 335e132Copy full SHA for 335e132
src/basicio.cpp
@@ -203,6 +203,7 @@ int FileIo::munmap() {
203
CloseHandle(p_->hFile_);
204
p_->hFile_ = 0;
205
#else
206
+#error Platforms without mmap are not supported. See https://github.com/Exiv2/exiv2/issues/2380
207
if (p_->isWriteable_) {
208
seek(0, BasicIo::beg);
209
write(p_->pMappedArea_, p_->mappedLength_);
@@ -275,6 +276,7 @@ byte* FileIo::mmap(bool isWriteable) {
275
276
}
277
p_->pMappedArea_ = static_cast<byte*>(rc);
278
279
280
// Workaround for platforms without mmap: Read the file into memory
281
byte* buf = new byte[p_->mappedLength_];
282
const long offset = std::ftell(p_->fp_);
0 commit comments