From 8c50dcd282edcc43c970b9fa7e9aee89a4de4ae7 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 9 Dec 2005 16:41:59 +0000 Subject: Guard wchar dependent stuff properly, thx vapier --- libc/stdio/_stdio.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libc') diff --git a/libc/stdio/_stdio.h b/libc/stdio/_stdio.h index 13ecc3b4a..c5dd22935 100644 --- a/libc/stdio/_stdio.h +++ b/libc/stdio/_stdio.h @@ -26,10 +26,6 @@ extern int __vsnprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, __gnuc_va_list __arg) __THROW __attribute__ ((__format__ (__printf__, 3, 0))) attribute_hidden; -extern int __vfwprintf (__FILE *__restrict __s, - __const wchar_t *__restrict __format, - __gnuc_va_list __arg) attribute_hidden; - extern int __vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 2, 0))) attribute_hidden; @@ -38,15 +34,19 @@ extern int __vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __THROW __attribute__ ((__format__ (__scanf__, 2, 0))) attribute_hidden; +#ifdef __UCLIBC_HAS_WCHAR__ +#include + +extern int __vfwprintf (__FILE *__restrict __s, + __const wchar_t *__restrict __format, + __gnuc_va_list __arg) attribute_hidden; + extern int __vfwscanf (__FILE *__restrict __s, __const wchar_t *__restrict __format, __gnuc_va_list __arg) attribute_hidden; extern int __vswscanf (__const wchar_t *__restrict __s, __const wchar_t *__restrict __format, __gnuc_va_list __arg) __THROW attribute_hidden; - -#ifdef __UCLIBC_HAS_WCHAR__ -#include #endif #ifdef __UCLIBC_HAS_THREADS__ -- cgit v1.2.3