mdbx-windows: fix build with modern SDK but for legacy Windows.

Change-Id: Ic443815838715be8cc6565d4d7735651af0b58cc
This commit is contained in:
Leonid Yuriev 2019-08-29 23:21:22 +03:00
parent 553def9f0e
commit 648f991a5b

View File

@ -753,12 +753,12 @@ typedef NTSTATUS(NTAPI *MDBX_NtFsControlFile)(
OUT OPTIONAL PVOID OutputBuffer, IN ULONG OutputBufferLength);
extern MDBX_NtFsControlFile mdbx_NtFsControlFile;
#ifndef _WIN32_WINNT_WIN8
#if !defined(_WIN32_WINNT_WIN8) || _WIN32_WINNT < _WIN32_WINNT_WIN8
typedef struct _WIN32_MEMORY_RANGE_ENTRY {
PVOID VirtualAddress;
SIZE_T NumberOfBytes;
} WIN32_MEMORY_RANGE_ENTRY, *PWIN32_MEMORY_RANGE_ENTRY;
#endif
#endif /* Windows 8.x */
typedef BOOL(WINAPI *MDBX_PrefetchVirtualMemory)(
HANDLE hProcess, ULONG_PTR NumberOfEntries,