--- Per request from email https://sourceforge.net/p/mingw-w64/mailman/message/58756761/ I'm sending a change which completely removes those 3 inline functions.
It should be applied after the change "Add non-inline variant of UCRT _scprintf, _snprintf and _snscanf functions" from email attachment: https://sourceforge.net/p/mingw-w64/mailman/message/58754782/ --- mingw-w64-headers/crt/stdio.h | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index 2cdb59cbc889..9b4ab8275074 100644 --- a/mingw-w64-headers/crt/stdio.h +++ b/mingw-w64-headers/crt/stdio.h @@ -735,29 +735,11 @@ int vsnprintf (char *__stream, size_t __n, const char *__format, __builtin_va_li _CRTIMP unsigned int __cdecl _get_output_format(void); int __cdecl setvbuf(FILE * __restrict__ _File,char * __restrict__ _Buf,int _Mode,size_t _Size); #ifdef _UCRT - __mingw_ovr __MINGW_ATTRIB_PURE __attribute__((__format__ (__MINGW_PRINTF_FORMAT, 1, 2))) __MINGW_ATTRIB_NONNULL(1) - int __cdecl _scprintf(const char * __restrict__ _Format,...) - { - __builtin_va_list __ap; - int __ret; - __builtin_va_start(__ap, _Format); - __ret = __stdio_common_vsprintf(_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, NULL, 0, _Format, NULL, __ap); - __builtin_va_end(__ap); - return __ret; - } - __mingw_ovr __MINGW_ATTRIB_DEPRECATED_SEC_WARN + int __cdecl _scprintf(const char * __restrict__ _Format,...); __attribute__((__format__ (__MINGW_SCANF_FORMAT, 3, 4))) __MINGW_ATTRIB_NONNULL(3) - int __cdecl _snscanf(const char * __restrict__ _Src,size_t _MaxCount,const char * __restrict__ _Format,...) - { - __builtin_va_list __ap; - int __ret; - __builtin_va_start(__ap, _Format); - __ret = __stdio_common_vsscanf(0, _Src, _MaxCount, _Format, NULL, __ap); - __builtin_va_end(__ap); - return __ret; - } + int __cdecl _snscanf(const char * __restrict__ _Src,size_t _MaxCount,const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; #else __MINGW_ATTRIB_PURE __attribute__((__format__ (ms_printf, 1, 2))) __MINGW_ATTRIB_NONNULL(1) @@ -775,17 +757,8 @@ int vsnprintf (char *__stream, size_t __n, const char *__format, __builtin_va_li #ifdef _UCRT __attribute__((__format__ (__MINGW_PRINTF_FORMAT, 3, 0))) __MINGW_ATTRIB_NONNULL(3) int __cdecl _vsnprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,va_list _Args) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; - __mingw_ovr __MINGW_ATTRIB_DEPRECATED_SEC_WARN __attribute__((__format__ (__MINGW_PRINTF_FORMAT, 3, 4))) __MINGW_ATTRIB_NONNULL(3) - int __cdecl _snprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,...) - { - __builtin_va_list __ap; - int __ret; - __builtin_va_start(__ap, _Format); - __ret = _vsnprintf(_Dest, _Count, _Format, __ap); - __builtin_va_end(__ap); - return __ret; - } + int __cdecl _snprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; #else __attribute__((__format__ (ms_printf, 3, 4))) __MINGW_ATTRIB_NONNULL(3) _CRTIMP int __cdecl _snprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public