[PATCH] include: Add wmem functions to wchar.h
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> --- Fixes https://bugs.winehq.org/show_bug.cgi?id=43300 include/msvcrt/wchar.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h index a6797246af..0fd0c26695 100644 --- a/include/msvcrt/wchar.h +++ b/include/msvcrt/wchar.h @@ -476,6 +476,12 @@ size_t __cdecl wcrtomb(char*,wchar_t,mbstate_t*); size_t __cdecl wcsrtombs(char*,const wchar_t**,size_t,mbstate_t*); int __cdecl wctob(wint_t); +wchar_t* __cdecl wmemchr(const wchar_t*,wchar_t,size_t); +int __cdecl wmemcmp(const wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemcpy(wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemmove(wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemset(wchar_t*,wchar_t,size_t); + #ifdef __cplusplus } #endif -- 2.17.0
Hi Alex, On 05/23/18 06:30, Alex Henrie wrote:
+wchar_t* __cdecl wmemchr(const wchar_t*,wchar_t,size_t); +int __cdecl wmemcmp(const wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemcpy(wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemmove(wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemset(wchar_t*,wchar_t,size_t); These functions are not exported from any of msv* dlls. If it's really needed you will need to provide the implementation inside of the header.
Thanks, Piotr
On Fri, May 25, 2018 at 4:17 AM Piotr Caban <piotr.caban(a)gmail.com> wrote:
On 05/23/18 06:30, Alex Henrie wrote:
+wchar_t* __cdecl wmemchr(const wchar_t*,wchar_t,size_t); +int __cdecl wmemcmp(const wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemcpy(wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemmove(wchar_t*,const wchar_t*,size_t); +wchar_t* __cdecl wmemset(wchar_t*,wchar_t,size_t); These functions are not exported from any of msv* dlls. If it's really needed you will need to provide the implementation inside of the header.
Ah, thanks for catching that. When I saw the bug report I assumed that it was simply an oversight. I'm also assuming that the bug reporter had a good reason for wanting these functions, so I'll try writing some inline implementations. -Alex
participants (2)
-
Alex Henrie -
Piotr Caban