crt: Add missing __cdecl for __local_stdio_*_options functions Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/stdio/ucrt___local_stdio_printf_options.c b/mingw-w64-crt/stdio/ucrt___local_stdio_printf_options.c index 986c4fd..ee98ac1 100644 --- a/mingw-w64-crt/stdio/ucrt___local_stdio_printf_options.c +++ b/mingw-w64-crt/stdio/ucrt___local_stdio_printf_options.c
@@ -10,6 +10,6 @@ static unsigned __int64 options = _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS | _CRT_INTERNAL_PRINTF_STANDARD_ROUNDING; -unsigned __int64* __local_stdio_printf_options(void) { +unsigned __int64* __cdecl __local_stdio_printf_options(void) { return &options; }
diff --git a/mingw-w64-crt/stdio/ucrt___local_stdio_scanf_options.c b/mingw-w64-crt/stdio/ucrt___local_stdio_scanf_options.c index 2dbd324..e10a831 100644 --- a/mingw-w64-crt/stdio/ucrt___local_stdio_scanf_options.c +++ b/mingw-w64-crt/stdio/ucrt___local_stdio_scanf_options.c
@@ -10,6 +10,6 @@ static unsigned __int64 options = _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS; -unsigned __int64* __local_stdio_scanf_options(void) { +unsigned __int64* __cdecl __local_stdio_scanf_options(void) { return &options; }
diff --git a/mingw-w64-headers/crt/corecrt_stdio_config.h b/mingw-w64-headers/crt/corecrt_stdio_config.h index 7ac0e6e..366d90a 100644 --- a/mingw-w64-headers/crt/corecrt_stdio_config.h +++ b/mingw-w64-headers/crt/corecrt_stdio_config.h
@@ -13,8 +13,8 @@ extern "C" { #endif -unsigned __int64* __local_stdio_printf_options(void); -unsigned __int64* __local_stdio_scanf_options(void); +unsigned __int64* __cdecl __local_stdio_printf_options(void); +unsigned __int64* __cdecl __local_stdio_scanf_options(void); #define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION 0x0001ULL #define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR 0x0002ULL