summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/stdio.h
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2008-07-04 03:55:50 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2008-07-04 03:55:50 +0000
commit608d5d8f36be59df14e05cca3e42f7eb8b3cf918 (patch)
tree1177a1db4afcb53ccf63e729de09017c2125231d /winsup/mingw/include/stdio.h
parent18a635e315d60f65d87a7ed590c3fea4fd4cc09c (diff)
downloadcygnal-608d5d8f36be59df14e05cca3e42f7eb8b3cf918.tar.gz
cygnal-608d5d8f36be59df14e05cca3e42f7eb8b3cf918.tar.bz2
cygnal-608d5d8f36be59df14e05cca3e42f7eb8b3cf918.zip
* include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__
* include/wchar.h (swprintf, vswprintf): Likewise.
Diffstat (limited to 'winsup/mingw/include/stdio.h')
-rw-r--r--winsup/mingw/include/stdio.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h
index f8bb0ec18..c01de5efd 100644
--- a/winsup/mingw/include/stdio.h
+++ b/winsup/mingw/include/stdio.h
@@ -447,11 +447,9 @@ __CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE * stream)
/* also in wchar.h - keep in sync */
_CRTIMP int __cdecl __MINGW_NOTHROW fwprintf (FILE*, const wchar_t*, ...);
_CRTIMP int __cdecl __MINGW_NOTHROW wprintf (const wchar_t*, ...);
-_CRTIMP int __cdecl __MINGW_NOTHROW swprintf (wchar_t*, const wchar_t*, ...);
_CRTIMP int __cdecl __MINGW_NOTHROW _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
_CRTIMP int __cdecl __MINGW_NOTHROW vfwprintf (FILE*, const wchar_t*, __VALIST);
_CRTIMP int __cdecl __MINGW_NOTHROW vwprintf (const wchar_t*, __VALIST);
-_CRTIMP int __cdecl __MINGW_NOTHROW vswprintf (wchar_t*, const wchar_t*, __VALIST);
_CRTIMP int __cdecl __MINGW_NOTHROW _vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
_CRTIMP int __cdecl __MINGW_NOTHROW fwscanf (FILE*, const wchar_t*, ...);
_CRTIMP int __cdecl __MINGW_NOTHROW wscanf (const wchar_t*, ...);
@@ -460,6 +458,12 @@ _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*);
_CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t, FILE*);
_CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t, FILE*);
+/* These differ from the ISO C prototypes, which have a maxlen parameter (like snprintf). */
+#ifndef __STRICT_ANSI__
+_CRTIMP int __cdecl __MINGW_NOTHROW swprintf (wchar_t*, const wchar_t*, ...);
+_CRTIMP int __cdecl __MINGW_NOTHROW vswprintf (wchar_t*, const wchar_t*, __VALIST);
+#endif
+
#ifdef __MSVCRT__
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW fgetws (wchar_t*, int, FILE*);
_CRTIMP int __cdecl __MINGW_NOTHROW fputws (const wchar_t*, FILE*);