mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 06:44:27 +00:00
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
21 lines
377 B
C
21 lines
377 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(_cprintf_s))(const char *,...) =
|
|
_cprintf_s;
|
|
|
|
int __cdecl
|
|
_cprintf_s (const char *s, ...)
|
|
{
|
|
va_list argp;
|
|
int r;
|
|
|
|
va_start (argp, s);
|
|
r = _vcprintf_s (s, argp);
|
|
va_end (argp);
|
|
return r;
|
|
}
|