From: Ignacio Casal Quinteiro Date: Thu, 15 Oct 2015 20:22:25 +0000 (-0700) Subject: ITS#8270 win32: fix conversion error with MSVC X-Git-Tag: LMDB_0.9.17~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52446f93e7bc7c075b47d2e584a26c978f21f406;p=openldap ITS#8270 win32: fix conversion error with MSVC --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 1dc7152c7f..828e43205d 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -185,6 +185,12 @@ extern int cacheflush(char *addr, int nbytes, int cache); #define ESECT #endif +#ifdef _MSC_VER +#define CALL_CONV WINAPI +#else +#define CALL_CONV +#endif + /** @defgroup internal LMDB Internals * @{ */ @@ -8509,7 +8515,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;