summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/stdio.h2
-rw-r--r--newlib/libc/include/wchar.h25
2 files changed, 27 insertions, 0 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index a55dd6969..fd58a25b3 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -164,11 +164,13 @@ typedef _fpos64_t fpos64_t;
* Functions defined in ANSI C standard.
*/
+#ifndef __VALIST
#ifdef __GNUC__
#define __VALIST __gnuc_va_list
#else
#define __VALIST char*
#endif
+#endif
FILE * _EXFUN(tmpfile, (void));
char * _EXFUN(tmpnam, (char *));
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index ad905e2bf..37529a97f 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -10,6 +10,9 @@
#define __need_wint_t
#include <stddef.h>
+#define __need___va_list
+#include <stdarg.h>
+
/* For _mbstate_t definition. */
#include <sys/_types.h>
@@ -129,6 +132,28 @@ wint_t _EXFUN (_ungetwc_r, (struct _reent *, wint_t wc, __FILE *));
__FILE *_EXFUN (open_wmemstream, (wchar_t **, size_t *));
__FILE *_EXFUN (_open_wmemstream_r, (struct _reent *, wchar_t **, size_t *));
+#ifndef __VALIST
+#ifdef __GNUC__
+#define __VALIST __gnuc_va_list
+#else
+#define __VALIST char*
+#endif
+#endif
+
+int _EXFUN(fwprintf, (__FILE *, const wchar_t *, ...));
+int _EXFUN(swprintf, (wchar_t *, size_t, const wchar_t *, ...));
+int _EXFUN(vfwprintf, (__FILE *, const wchar_t *, __VALIST));
+int _EXFUN(vswprintf, (wchar_t *, size_t, const wchar_t *, __VALIST));
+int _EXFUN(vwprintf, (const wchar_t *, __VALIST));
+int _EXFUN(wprintf, (const wchar_t *, ...));
+
+int _EXFUN(_fwprintf_r, (struct _reent *, __FILE *, const wchar_t *, ...));
+int _EXFUN(_swprintf_r, (struct _reent *, wchar_t *, size_t, const wchar_t *, ...));
+int _EXFUN(_vfwprintf_r, (struct _reent *, __FILE *, const wchar_t *, __VALIST));
+int _EXFUN(_vswprintf_r, (struct _reent *, wchar_t *, size_t, const wchar_t *, __VALIST));
+int _EXFUN(_vwprintf_r, (struct _reent *, const wchar_t *, __VALIST));
+int _EXFUN(_wprintf_r, (struct _reent *, const wchar_t *, ...));
+
#define getwc(fp) fgetwc(fp)
#define putwc(wc,fp) fputwc((wc), (fp))
#ifndef _REENT_ONLY