Kai Tietz | a0fa47b | 2012-08-01 10:52:17 +0000 | [diff] [blame] | 1 | #include <windows.h> |
| 2 | #include <malloc.h> |
| 3 | #include <errno.h> |
| 4 | |
| 5 | HMODULE __mingw_get_msvcrt_handle(void); |
| 6 | int __cdecl _cwprintf_s (const wchar_t *,...); |
| 7 | int __cdecl _vcwprintf_s (const wchar_t *,va_list); |
| 8 | |
| 9 | int __cdecl (*__MINGW_IMP_SYMBOL(_cwprintf_s))(const wchar_t *,...) = |
| 10 | _cwprintf_s; |
| 11 | |
| 12 | int __cdecl |
| 13 | _cwprintf_s (const wchar_t *s, ...) |
| 14 | { |
| 15 | va_list argp; |
| 16 | int r; |
| 17 | |
| 18 | va_start (argp, s); |
| 19 | r = _vcwprintf_s (s, argp); |
| 20 | va_end (argp); |
| 21 | return r; |
| 22 | } |