We stopped providing these functions as inline in
30c0b623dbaf9dcc218c9068625f5e8dddd57aab.

Signed-off-by: Martin Storsjö <mar...@martin.st>
---
 mingw-w64-crt/stdio/ucrt__snwprintf.c | 16 ----------------
 mingw-w64-crt/stdio/ucrt_fwprintf.c   | 16 ----------------
 2 files changed, 32 deletions(-)

diff --git a/mingw-w64-crt/stdio/ucrt__snwprintf.c 
b/mingw-w64-crt/stdio/ucrt__snwprintf.c
index 07cdf18a4..b69eb73f5 100644
--- a/mingw-w64-crt/stdio/ucrt__snwprintf.c
+++ b/mingw-w64-crt/stdio/ucrt__snwprintf.c
@@ -4,25 +4,12 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
-// For ucrt, this function normally is an inline function in stdio.h.
-// libmingwex doesn't use the ucrt version of headers, and wassert.c can
-// end up requiring a concrete version of it.
-
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Winline"
-#endif
-
 #undef __MSVCRT_VERSION__
 #define _UCRT
 
-#define _snwprintf real__snwprintf
-
 #include <stdarg.h>
 #include <stdio.h>
 
-#undef _snwprintf
-
 int __cdecl _snwprintf(wchar_t * restrict _Dest, size_t _Count, const wchar_t 
* restrict _Format, ...);
 
 int __cdecl _snwprintf(wchar_t * restrict _Dest, size_t _Count, const wchar_t 
* restrict _Format, ...)
@@ -36,6 +23,3 @@ int __cdecl _snwprintf(wchar_t * restrict _Dest, size_t 
_Count, const wchar_t *
 }
 
 int __cdecl (*__MINGW_IMP_SYMBOL(_snwprintf))(wchar_t *restrict, size_t, const 
wchar_t *restrict, ...) = _snwprintf;
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
diff --git a/mingw-w64-crt/stdio/ucrt_fwprintf.c 
b/mingw-w64-crt/stdio/ucrt_fwprintf.c
index d51a6d692..b929effbd 100644
--- a/mingw-w64-crt/stdio/ucrt_fwprintf.c
+++ b/mingw-w64-crt/stdio/ucrt_fwprintf.c
@@ -4,25 +4,12 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
-// For ucrt, this function normally is an inline function in stdio.h.
-// libmingwex doesn't use the ucrt version of headers, and wassert.c can
-// end up requiring a concrete version of it.
-
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Winline"
-#endif
-
 #undef __MSVCRT_VERSION__
 #define _UCRT
 
-#define fwprintf real_fwprintf
-
 #include <stdarg.h>
 #include <stdio.h>
 
-#undef fwprintf
-
 int __cdecl fwprintf(FILE *ptr, const wchar_t *fmt, ...);
 
 int __cdecl fwprintf(FILE *ptr, const wchar_t *fmt, ...)
@@ -36,6 +23,3 @@ int __cdecl fwprintf(FILE *ptr, const wchar_t *fmt, ...)
 }
 
 int __cdecl (*__MINGW_IMP_SYMBOL(fwprintf))(FILE *, const wchar_t *, ...) = 
fwprintf;
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to