mdbx: Windows XP compatibility.

Change-Id: Iafe3a83110610071e42a168ef9fc5f8d3131854f
This commit is contained in:
Leo Yuriev
2018-06-12 22:56:26 +03:00
parent 28eda32c12
commit 09ad941a05
8 changed files with 173 additions and 100 deletions

View File

@@ -1134,7 +1134,7 @@ const char *__cold mdbx_strerror(int errnum) {
const char *msg = __mdbx_strerr(errnum);
if (!msg) {
#ifdef _MSC_VER
static __thread char buffer[1024];
static char buffer[1024];
size_t size = FormatMessageA(
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
errnum, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buffer,