/usr/x86_64-w64-mingw32/include/swprintf.inl is in mingw-w64-x86-64-dev 3.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | /**
* 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.
*/
#ifndef _INC_SWPRINTF_INL
#define _INC_SWPRINTF_INL
#include <vadefs.h>
#undef __mingw_ovr
#if defined (__GNUC__)
#define __mingw_ovr static __attribute__ ((__unused__)) __inline__ __cdecl
#elif defined(__cplusplus)
#define __mingw_ovr inline __cdecl
#else
#define __mingw_ovr static __cdecl
#endif
__mingw_ovr
/* __attribute__((__format__ (gnu_wprintf, 3, 0))) */ __MINGW_ATTRIB_NONNULL(3)
int vswprintf (wchar_t *__stream, size_t __count, const wchar_t *__format, __builtin_va_list __local_argv)
{
return vsnwprintf( __stream, __count, __format, __local_argv );
}
__mingw_ovr
/* __attribute__((__format__ (gnu_wprintf, 3, 4))) */ __MINGW_ATTRIB_NONNULL(3)
int swprintf (wchar_t *__stream, size_t __count, const wchar_t *__format, ...)
{
register int __retval;
__builtin_va_list __local_argv;
__builtin_va_start( __local_argv, __format );
__retval = vswprintf( __stream, __count, __format, __local_argv );
__builtin_va_end( __local_argv );
return __retval;
}
#ifdef __cplusplus
extern "C++" {
__mingw_ovr
/* __attribute__((__format__ (gnu_wprintf, 2, 0))) */ __MINGW_ATTRIB_NONNULL(2)
int vswprintf (wchar_t *__stream, const wchar_t *__format, __builtin_va_list __local_argv)
{
#if __USE_MINGW_ANSI_STDIO
return __mingw_vswprintf( __stream, __format, __local_argv );
#else
return _vswprintf( __stream, __format, __local_argv );
#endif
}
__mingw_ovr
/* __attribute__((__format__ (gnu_wprintf, 2, 3))) */ __MINGW_ATTRIB_NONNULL(2)
int swprintf (wchar_t *__stream, const wchar_t *__format, ...)
{
register int __retval;
__builtin_va_list __local_argv;
__builtin_va_start( __local_argv, __format );
__retval = vswprintf( __stream, __format, __local_argv );
__builtin_va_end( __local_argv );
return __retval;
}
}
#elif defined(_CRT_NON_CONFORMING_SWPRINTFS)
#if __USE_MINGW_ANSI_STDIO
#define swprintf __mingw_swprintf
#define vswprintf __mingw_vswprintf
#else
#define swprintf _swprintf
#define vswprintf _vswprintf
#endif
#endif /* __cplusplus */
#endif /* _INC_SWPRINTF_INL */
|