blob: b5006f6c5d3ae513a3664b9fb71cb6c82f720747 [file] [log] [blame]
Kai Tietza0fa47b2012-08-01 10:52:17 +00001#include <windows.h>
2#include <malloc.h>
3#include <errno.h>
4
5HMODULE __mingw_get_msvcrt_handle(void);
6int __cdecl _cwprintf_s (const wchar_t *,...);
7int __cdecl _vcwprintf_s (const wchar_t *,va_list);
8
9int __cdecl (*__MINGW_IMP_SYMBOL(_cwprintf_s))(const wchar_t *,...) =
10 _cwprintf_s;
11
12int __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}