Jacek Caban : stdio.h: Add ucrt vfprintf_s declaration.
Alexandre Julliard
julliard at winehq.org
Thu Feb 20 18:26:13 CST 2020
Module: wine
Branch: master
Commit: 62d43ed4180bca17035c06a9b0efd9b8a52278d9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=62d43ed4180bca17035c06a9b0efd9b8a52278d9
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Feb 20 15:22:35 2020 +0100
stdio.h: Add ucrt vfprintf_s declaration.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/msvcrt/stdio.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h
index a31eada276..33d33aa7b4 100644
--- a/include/msvcrt/stdio.h
+++ b/include/msvcrt/stdio.h
@@ -154,7 +154,6 @@ int WINAPIV _snscanf_l(const char*,size_t,const char*,_locale_t,...);
FILE* __cdecl tmpfile(void);
char* __cdecl tmpnam(char*);
int __cdecl ungetc(int,FILE*);
-int __cdecl vfprintf_s(FILE*,const char*,__ms_va_list);
int __cdecl vprintf(const char*,__ms_va_list);
int __cdecl vprintf_s(const char*,__ms_va_list);
unsigned int __cdecl _get_output_format(void);
@@ -163,6 +162,7 @@ unsigned int __cdecl _set_output_format(void);
#ifdef _UCRT
_ACRTIMP int __cdecl __stdio_common_vfprintf(unsigned __int64,FILE*,const char*,_locale_t,__ms_va_list);
+_ACRTIMP int __cdecl __stdio_common_vfprintf_s(unsigned __int64,FILE*,const char*,_locale_t,__ms_va_list);
_ACRTIMP int __cdecl __stdio_common_vsprintf(unsigned __int64,char*,size_t,const char*,_locale_t,__ms_va_list);
_ACRTIMP int __cdecl __stdio_common_vsprintf_p(unsigned __int64,char*,size_t,const char*,_locale_t,__ms_va_list);
_ACRTIMP int __cdecl __stdio_common_vsprintf_s(unsigned __int64,char*,size_t,const char*,_locale_t,__ms_va_list);
@@ -219,12 +219,18 @@ static inline int __cdecl vfprintf(FILE *file, const char *format, __ms_va_list
return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, file, format, NULL, args);
}
+static inline int __cdecl vfprintf_s(FILE *file, const char *format, __ms_va_list args)
+{
+ return __stdio_common_vfprintf_s(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, file, format, NULL, args);
+}
+
#else /* _UCRT */
_ACRTIMP int __cdecl _vscprintf(const char*,__ms_va_list);
_ACRTIMP int __cdecl _vsnprintf_s(char*,size_t,size_t,const char*,__ms_va_list);
_ACRTIMP int __cdecl _vsprintf_p_l(char*,size_t,const char*,_locale_t,__ms_va_list);
_ACRTIMP int __cdecl vfprintf(FILE*,const char*,__ms_va_list);
+_ACRTIMP int __cdecl vfprintf_s(FILE*,const char*,__ms_va_list);
_ACRTIMP int __cdecl vsprintf(char*,const char*,__ms_va_list);
_ACRTIMP int __cdecl vsprintf_s(char*,size_t,const char*,__ms_va_list);
More information about the wine-cvs
mailing list