mdbx-windows: add cmake-generation of extra-import-library for ntdll.dll

This commit is contained in:
Leonid Yuriev
2019-09-03 19:15:22 +03:00
parent 967900e2e9
commit 6495e2f87c
2 changed files with 59 additions and 9 deletions

View File

@@ -54,10 +54,6 @@ static int ntstatus2errcode(NTSTATUS status) {
* conflict with the regular user-level headers, so we explicitly
* declare them here. Using these APIs also means we must link to
* ntdll.dll, which is not linked by default in user code. */
#pragma comment(lib, "ntdll.lib")
#ifdef MDBX_AVOID_CRT
#pragma comment(lib, "mdbx_ntdll_extra.lib")
#endif
extern NTSTATUS NTAPI NtCreateSection(
OUT PHANDLE SectionHandle, IN ACCESS_MASK DesiredAccess,