Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 22, 2021
1 parent 0ca7527 commit 7243cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions external/untwine/api/QgisUntwine.cpp
@@ -1,4 +1,5 @@
#include <iostream>
#include <algorithm>

#include "QgisUntwine.hpp"

Expand Down
4 changes: 2 additions & 2 deletions external/untwine/untwine/MapFile.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 7243cb6

Please sign in to comment.