From a66cefb198e857208a03ae126ae66358e75e2c18 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 28 Aug 2019 17:24:22 +0300 Subject: [PATCH] mdbx-tools: use ANSI2OEM-versions of mdbx_strerror() for Windows. Change-Id: I15500eec60b20e45c2881499a809a00fb4d661fa --- src/tools/wingetopt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/wingetopt.h b/src/tools/wingetopt.h index fdff3683..d328e38c 100644 --- a/src/tools/wingetopt.h +++ b/src/tools/wingetopt.h @@ -9,6 +9,10 @@ #ifndef _WINGETOPT_H_ #define _WINGETOPT_H_ +/* Bit of madness for Windows console */ +#define mdbx_strerror mdbx_strerror_ANSI2OEM +#define mdbx_strerror_r mdbx_strerror_r_ANSI2OEM + #ifdef __cplusplus extern "C" { #endif