From 648f991a5b54355703b08b77bd3e5e8eb9d0afc3 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 29 Aug 2019 23:21:22 +0300 Subject: [PATCH] mdbx-windows: fix build with modern SDK but for legacy Windows. Change-Id: Ic443815838715be8cc6565d4d7735651af0b58cc --- src/osal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osal.h b/src/osal.h index b690a5a5..be7e44d3 100644 --- a/src/osal.h +++ b/src/osal.h @@ -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,