projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9411de6
)
ITS#8270 win32: fix conversion error with MSVC
author
Ignacio Casal Quinteiro
<ignacio.casal@nice-software.com>
Thu, 15 Oct 2015 20:22:25 +0000
(13:22 -0700)
committer
Howard Chu
<hyc@openldap.org>
Sun, 25 Oct 2015 08:06:37 +0000
(08:06 +0000)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
8f7f3b3
..
901f6c4
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-210,6
+210,12
@@
union semun {
#define ESECT
#endif
+#ifdef _MSC_VER
+#define CALL_CONV WINAPI
+#else
+#define CALL_CONV
+#endif
+
/** @defgroup internal LMDB Internals
* @{
*/
@@
-8715,7
+8721,7
@@
typedef struct mdb_copy {
} mdb_copy;
/** Dedicated writer thread for compacting copy. */
-static THREAD_RET ESECT
+static THREAD_RET ESECT
CALL_CONV
mdb_env_copythr(void *arg)
{
mdb_copy *my = arg;