mdbx-windows: add MDBX_BUILD_DLL and DllMain().

Change-Id: I715f5ea84fe77923eecbc617c4e994e3e5d44605
This commit is contained in:
Leonid Yuriev
2018-10-07 22:19:54 +03:00
parent c9e3dc373b
commit 777d1db5c9
3 changed files with 17 additions and 7 deletions

2
mdbx.h
View File

@@ -207,6 +207,7 @@ extern LIBMDBX_API const mdbx_version_info mdbx_version;
extern LIBMDBX_API const mdbx_build_info mdbx_build;
#if defined(_WIN32) || defined(_WIN64)
#ifndef MDBX_BUILD_DLL
/* Dll initialization callback for ability to dynamically load MDBX DLL by
* LoadLibrary() on Windows versions before Windows Vista. This function MUST be
@@ -222,6 +223,7 @@ extern LIBMDBX_API const mdbx_build_info mdbx_build;
void LIBMDBX_API NTAPI mdbx_dll_callback(PVOID module, DWORD reason,
PVOID reserved);
#endif /* MDBX_CONFIG_MANUAL_TLS_CALLBACK */
#endif /* MDBX_BUILD_DLL */
#endif /* Windows */
/* The name of the lock file in the DB environment */