49d1a4c562
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
22 lines
387 B
C
22 lines
387 B
C
#define MINGW_HAS_SECURE_API 1
|
|
#include <windows.h>
|
|
#include <malloc.h>
|
|
#include <errno.h>
|
|
#include <msvcrt.h>
|
|
#include <sec_api/conio_s.h>
|
|
|
|
int __cdecl (*__MINGW_IMP_SYMBOL(_cwprintf_s))(const wchar_t *,...) =
|
|
_cwprintf_s;
|
|
|
|
int __cdecl
|
|
_cwprintf_s (const wchar_t *s, ...)
|
|
{
|
|
va_list argp;
|
|
int r;
|
|
|
|
va_start (argp, s);
|
|
r = _vcwprintf_s (s, argp);
|
|
va_end (argp);
|
|
return r;
|
|
}
|