headers: Add missing __cdecl for *wscanf functions
Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index 5e09790..3aca32a 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -1100,17 +1100,21 @@
#ifdef _UCRT
__MINGW_ATTRIB_DEPRECATED_SEC_WARN
int __cdecl fwscanf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);
+
__MINGW_ATTRIB_DEPRECATED_SEC_WARN
int __cdecl swscanf(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,...);
+
__MINGW_ATTRIB_DEPRECATED_SEC_WARN
int __cdecl wscanf(const wchar_t * __restrict__ _Format,...);
- __MINGW_ATTRIB_NONNULL(2)
- int vfwscanf (FILE *__stream, const wchar_t *__format, va_list __local_argv);
__MINGW_ATTRIB_NONNULL(2)
- int vswscanf (const wchar_t * __restrict__ __source, const wchar_t * __restrict__ __format, va_list __local_argv);
+ int __cdecl vfwscanf(FILE *__stream, const wchar_t *__format, va_list __local_argv);
+
+ __MINGW_ATTRIB_NONNULL(2)
+ int __cdecl vswscanf(const wchar_t * __restrict__ __source, const wchar_t * __restrict__ __format, va_list __local_argv);
+
__MINGW_ATTRIB_NONNULL(1)
- int vwscanf(const wchar_t *__format, va_list __local_argv);
+ int __cdecl vwscanf(const wchar_t *__format, va_list __local_argv);
int __cdecl fwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);
int __cdecl wprintf(const wchar_t * __restrict__ _Format,...);
diff --git a/mingw-w64-headers/crt/wchar.h b/mingw-w64-headers/crt/wchar.h
index fd22b21..cbe25c7 100644
--- a/mingw-w64-headers/crt/wchar.h
+++ b/mingw-w64-headers/crt/wchar.h
@@ -464,23 +464,26 @@
#ifdef _UCRT
__MINGW_ATTRIB_DEPRECATED_SEC_WARN
int __cdecl fwscanf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);
+
__MINGW_ATTRIB_DEPRECATED_SEC_WARN
int __cdecl swscanf(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,...);
+
__MINGW_ATTRIB_DEPRECATED_SEC_WARN
int __cdecl wscanf(const wchar_t * __restrict__ _Format,...);
- __MINGW_ATTRIB_NONNULL(2)
- int vfwscanf (FILE *__stream, const wchar_t *__format, va_list __local_argv);
__MINGW_ATTRIB_NONNULL(2)
- int vswscanf (const wchar_t * __restrict__ __source, const wchar_t * __restrict__ __format, va_list __local_argv);
+ int __cdecl vfwscanf(FILE *__stream, const wchar_t *__format, va_list __local_argv);
+
+ __MINGW_ATTRIB_NONNULL(2)
+ int __cdecl vswscanf(const wchar_t * __restrict__ __source, const wchar_t * __restrict__ __format, va_list __local_argv);
+
__MINGW_ATTRIB_NONNULL(1)
- int vwscanf(const wchar_t *__format, va_list __local_argv);
+ int __cdecl vwscanf(const wchar_t *__format, va_list __local_argv);
int __cdecl fwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);
int __cdecl wprintf(const wchar_t * __restrict__ _Format,...);
int __cdecl vfwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);
int __cdecl vwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);
-
int __cdecl swprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...);
int __cdecl vswprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args);
#else