mdbx-windows: add mdbx_strerror_ANSI2OEM() and mdbx_strerror_r_ANSI2OEM().

This commit is contained in:
Leonid Yuriev
2019-08-28 17:12:32 +03:00
parent 10ab5dc032
commit 368b48b41b
2 changed files with 29 additions and 2 deletions

7
mdbx.h
View File

@@ -526,6 +526,13 @@ typedef struct MDBX_envinfo {
LIBMDBX_API const char *mdbx_strerror(int errnum);
LIBMDBX_API const char *mdbx_strerror_r(int errnum, char *buf, size_t buflen);
#if defined(_WIN32) || defined(_WIN64)
/* Bit of madness for Windows */
LIBMDBX_API const char *mdbx_strerror_ANSI2OEM(int errnum);
LIBMDBX_API const char *mdbx_strerror_r_ANSI2OEM(int errnum, char *buf,
size_t buflen);
#endif /* Bit of madness for Windows */
/* Create an MDBX environment handle.
*
* This function allocates memory for a MDBX_env structure. To release