mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-26 00:22:10 -05:00
untwine: apply hobu/untwine#59 and hobu/untwine@c7f94c1593
(refs #42904)
This commit is contained in:
parent
0ca75275f8
commit
7243cb6f14
1
external/untwine/api/QgisUntwine.cpp
vendored
1
external/untwine/api/QgisUntwine.cpp
vendored
@ -1,4 +1,5 @@
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
#include "QgisUntwine.hpp"
|
||||
|
||||
|
||||
4
external/untwine/untwine/MapFile.cpp
vendored
4
external/untwine/untwine/MapFile.cpp
vendored
@ -49,10 +49,10 @@ MapContext mapFile(const std::string& filename, bool readOnly,
|
||||
return ctx;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
#ifndef _WIN32
|
||||
ctx.m_fd = ::open(filename.c_str(), readOnly ? O_RDONLY : O_RDWR);
|
||||
#else
|
||||
ctx.m_fd = ::_open(filename.c_str(), readOnly ? O_RDONLY : O_RDWR);
|
||||
ctx.m_fd = ::_open(filename.c_str(), readOnly ? _O_RDONLY : _O_RDWR);
|
||||
#endif
|
||||
|
||||
if (ctx.m_fd == -1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user