summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdb/src')
-rw-r--r--plugins/Dbx_mdb/src/lmdb/lmdb.h6
-rw-r--r--plugins/Dbx_mdb/src/lmdb/mdb.c6
-rw-r--r--plugins/Dbx_mdb/src/lmdb/midl.h6
3 files changed, 15 insertions, 3 deletions
diff --git a/plugins/Dbx_mdb/src/lmdb/lmdb.h b/plugins/Dbx_mdb/src/lmdb/lmdb.h
index 41343879c1..747d2bbadd 100644
--- a/plugins/Dbx_mdb/src/lmdb/lmdb.h
+++ b/plugins/Dbx_mdb/src/lmdb/lmdb.h
@@ -166,7 +166,11 @@
#define _LMDB_H_
#include <sys/types.h>
-#include <inttypes.h>
+#if _MSC_VER < 1800
+# include <msapi/inttypes.h>
+#else
+# include <inttypes.h>
+#endif
#define MDB_VL32 1
diff --git a/plugins/Dbx_mdb/src/lmdb/mdb.c b/plugins/Dbx_mdb/src/lmdb/mdb.c
index a99e079c7f..4ea8982871 100644
--- a/plugins/Dbx_mdb/src/lmdb/mdb.c
+++ b/plugins/Dbx_mdb/src/lmdb/mdb.c
@@ -136,7 +136,11 @@ extern int cacheflush(char *addr, int nbytes, int cache);
#include <errno.h>
#include <limits.h>
#include <stddef.h>
-#include <inttypes.h>
+#if _MSC_VER < 1800
+# include <msapi/inttypes.h>
+#else
+# include <inttypes.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/plugins/Dbx_mdb/src/lmdb/midl.h b/plugins/Dbx_mdb/src/lmdb/midl.h
index b0d518ef03..91fa58f0fb 100644
--- a/plugins/Dbx_mdb/src/lmdb/midl.h
+++ b/plugins/Dbx_mdb/src/lmdb/midl.h
@@ -27,7 +27,11 @@
#define _MDB_MIDL_H_
#include <stddef.h>
-#include <inttypes.h>
+#if _MSC_VER < 1800
+# include <msapi/inttypes.h>
+#else
+# include <inttypes.h>
+#endif
#ifdef __cplusplus
extern "C" {