mdbx-windows: fix build for Windows XP/2000 (_WIN32_WINNT < 0x0600).

Related to https://github.com/erthink/libmdbx/issues/155

Change-Id: Ibd795817e05b6da39ef270ce7b55b31d963d07b0
This commit is contained in:
Leonid Yuriev
2021-05-08 10:12:41 +03:00
parent 8e078fb708
commit ab1fc94a5b
5 changed files with 63 additions and 1 deletions

View File

@@ -19,6 +19,9 @@
#endif
#if defined(_WIN32) || defined(_WIN64) || defined(_WINDOWS)
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0601 /* Windows 7 */
#endif
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#pragma warning(push, 1)