From 98a2bd785a0e2a3f63d4e47689c240ebaace2430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 9 Oct 2022 22:24:03 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-windows:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC?= =?UTF-8?q?=D0=B5=D1=89=D0=B5=D0=BD=D0=B0=20=D0=B4=D0=B5=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20`osal=5Fmb2w()`=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BB=D0=B8=D0=BA=D0=B2=D0=B8=D0=B4=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BF=D1=80=D0=B5=D0=B4=D1=83=D0=BF=D1=80=D0=B5=D0=B6?= =?UTF-8?q?=D0=B4=D0=B5=D0=BD=D0=B8=D0=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/osal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osal.h b/src/osal.h index 239d3f95..b3eda1c0 100644 --- a/src/osal.h +++ b/src/osal.h @@ -180,9 +180,6 @@ static inline void osal_free(void *ptr) { HeapFree(GetProcessHeap(), 0, ptr); } #define vsnprintf _vsnprintf /* ntdll */ #endif -MDBX_INTERNAL_FUNC size_t osal_mb2w(wchar_t *dst, size_t dst_n, const char *src, - size_t src_n); - #else /*----------------------------------------------------------------------*/ typedef pthread_t osal_thread_t; @@ -702,6 +699,9 @@ MDBX_INTERNAL_FUNC int osal_rpid_check(MDBX_env *env, uint32_t pid); #if defined(_WIN32) || defined(_WIN64) +MDBX_INTERNAL_FUNC size_t osal_mb2w(wchar_t *dst, size_t dst_n, const char *src, + size_t src_n); + #define OSAL_MB2WIDE(FROM, TO) \ do { \ const char *const from_tmp = (FROM); \