aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-28 02:18:41 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commite2bf48f0f4b2650932f6cde447e7ea2b422c43a9 (patch)
treeac1a887e72220be6528a6d6b5dc1dd4a7b8acfd2
parent07f99a86578bee9e7ac0dd0114b89bf983a92d9b (diff)
Fix build for mingw
m---------depends/sibs-pubsub0
-rw-r--r--include/odhtdb/env.hpp2
-rw-r--r--src/FileUtils.cpp5
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)