Module: wine Branch: master Commit: 364baf5deb7a0559a5d56bd0af1582eb33b57780 URL: https://source.winehq.org/git/wine.git/?a=commit;h=364baf5deb7a0559a5d56bd0a...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Feb 25 08:28:08 2020 +0100
corecrt_wstdio.h: Add ucrt wprintf and vwprintf declarations.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
include/msvcrt/corecrt_wstdio.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/include/msvcrt/corecrt_wstdio.h b/include/msvcrt/corecrt_wstdio.h index 0a574ad8e0..2dac0f9fa3 100644 --- a/include/msvcrt/corecrt_wstdio.h +++ b/include/msvcrt/corecrt_wstdio.h @@ -79,9 +79,7 @@ wint_t __cdecl putwc(wint_t,FILE*); wint_t __cdecl putwchar(wint_t); int __cdecl putws(const wchar_t*); wint_t __cdecl ungetwc(wint_t,FILE*); -int __cdecl vwprintf(const wchar_t*,__ms_va_list); int __cdecl vwprintf_s(const wchar_t*,__ms_va_list); -int WINAPIV wprintf(const wchar_t*,...); int WINAPIV wprintf_s(const wchar_t*,...); int WINAPIV wscanf(const wchar_t*,...); int WINAPIV wscanf_s(const wchar_t*,...); @@ -247,6 +245,22 @@ static inline int WINAPIV fwprintf_s(FILE *file, const wchar_t *format, ...) return ret; }
+static inline int __cdecl vwprintf(const wchar_t *format, __ms_va_list args) +{ + return __stdio_common_vfwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, stdout, format, NULL, args); +} + +static inline int WINAPIV wprintf(const wchar_t *format, ...) +{ + int ret; + __ms_va_list args; + + __ms_va_start(args, format); + ret = __stdio_common_vfwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, stdout, format, NULL, args); + __ms_va_end(args); + return ret; +} + static inline int WINAPIV swscanf(const wchar_t *buffer, const wchar_t *format, ...) { int ret; @@ -307,6 +321,8 @@ _ACRTIMP int WINAPIV swprintf_s(wchar_t*,size_t,const wchar_t*,...); _ACRTIMP int __cdecl vfwprintf(FILE*,const wchar_t*,__ms_va_list); _ACRTIMP int __cdecl vfwprintf_s(FILE*,const wchar_t*,__ms_va_list); _ACRTIMP int __cdecl vswprintf_s(wchar_t*,size_t,const wchar_t*,__ms_va_list); +_ACRTIMP int __cdecl vwprintf(const wchar_t*,__ms_va_list); +_ACRTIMP int WINAPIV wprintf(const wchar_t*,...);
#ifdef _CRT_NON_CONFORMING_SWPRINTFS int WINAPIV swprintf(wchar_t*,const wchar_t*,...);