]> git.sur5r.net Git - openldap/commitdiff
ITS#8270 win32: fix conversion error with MSVC
authorIgnacio Casal Quinteiro <ignacio.casal@nice-software.com>
Thu, 15 Oct 2015 20:22:25 +0000 (13:22 -0700)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Oct 2015 08:10:34 +0000 (08:10 +0000)
libraries/liblmdb/mdb.c

index 1dc7152c7fabb495f05e81f56727128b217a91f4..828e43205d0dad925e175e6dfdb16a9f6f5b91a6 100644 (file)
@@ -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;