diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-10-28 02:18:41 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-10-28 02:18:43 +0200 |
commit | 55bb14a7e0d034b375da73a9c2aae10881e32801 (patch) | |
tree | b017e876354d482e4503d34bef77edc8e77df376 | |
parent | 109108c896f1ada76121330ab01602072f32dd8c (diff) |
Fix build for mingw
m--------- | depends/sibs-pubsub | 0 | ||||
-rw-r--r-- | include/odhtdb/env.hpp | 2 | ||||
-rw-r--r-- | src/FileUtils.cpp | 5 |
3 files changed, 6 insertions, 1 deletions
diff --git a/depends/sibs-pubsub b/depends/sibs-pubsub -Subproject 4fffc1cd8ccf1c3b1f15b2cb1942daf8cdd556a +Subproject c1322a271104d037684fb21e2cdced47c566a3c diff --git a/include/odhtdb/env.hpp b/include/odhtdb/env.hpp index abaedd8..57ae068 100644 --- a/include/odhtdb/env.hpp +++ b/include/odhtdb/env.hpp @@ -27,7 +27,7 @@ #define WIN32_LEAN_AND_MEAN #endif - #include <Windows.h> + #include <windows.h> #endif #if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(_POSIX_VERSION) diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp index 28bce29..2258081 100644 --- a/src/FileUtils.cpp +++ b/src/FileUtils.cpp @@ -3,6 +3,11 @@ using namespace std; +#ifdef __MINGW32__ +#define flockfile(fp) +#define funlockfile(fp) +#endif + namespace odhtdb { OwnedByteArray fileGetContent(const boost::filesystem::path &filepath) |