mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
24 lines
747 B
C
Vendored
24 lines
747 B
C
Vendored
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
|
|
#undef __MSVCRT_VERSION__
|
|
#define _UCRT
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
|
|
// This is called for wchar cases with __USE_MINGW_ANSI_STDIO enabled (where the
|
|
// char case just uses fputc).
|
|
int __cdecl __ms_fwprintf(FILE *file, const wchar_t *fmt, ...)
|
|
{
|
|
va_list ap;
|
|
int ret;
|
|
va_start(ap, fmt);
|
|
ret = __stdio_common_vfwprintf(_CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS, file, fmt, NULL, ap);
|
|
va_end(ap);
|
|
return ret;
|
|
}
|
|
int __cdecl (*__MINGW_IMP_SYMBOL(__ms_fwprintf))(FILE *, const wchar_t *, ...) = __ms_fwprintf;
|