summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-09 16:41:59 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-09 16:41:59 +0000
commit8c50dcd282edcc43c970b9fa7e9aee89a4de4ae7 (patch)
treedeb29fb77e3c0751da346f6a7be28c852ef7de8a /libc/stdio
parent4f16d2e03a6cc2415a0eefcf50410d1943319543 (diff)
Guard wchar dependent stuff properly, thx vapier
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/_stdio.h14
1 files changed, 7 insertions, 7 deletions
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 <wchar.h>
+
+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 <wchar.h>
#endif
#ifdef __UCLIBC_HAS_THREADS__