Skip to content
Permalink
Browse files

untwine: apply hobu/untwine#59 and hobu/untwine@c7f94c1

(refs #42904)
  • Loading branch information
jef-n committed Apr 22, 2021
1 parent 0ca7527 commit 7243cb6f14c14af79071690129fa7fd2fa1a7d6b
Showing with 3 additions and 2 deletions.
  1. +1 −0 external/untwine/api/QgisUntwine.cpp
  2. +2 −2 external/untwine/untwine/MapFile.cpp
@@ -1,4 +1,5 @@
#include <iostream>
#include <algorithm>

#include "QgisUntwine.hpp"

@@ -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)

0 comments on commit 7243cb6

Please sign in to comment.