From 10d12e77d5cdffd064719356a87f839225916a4a Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 13 Jun 2013 10:54:39 -0400 Subject: libc/misc/gnu/obprintf.c: implement obstack_printf and obstack_vprintf This adds a straight forward implementation for obstack_printf and obstack_vprintf on uClibc's already existing obstack_grow and vasprintf. It does not attempt to port over glibc's implementation in terms of _IO_* structs and functions. Signed-off-by: Anthony G. Basile Signed-off-by: Bernhard Reutner-Fischer --- include/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index e0006d2e7..831aa1c36 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -854,7 +854,7 @@ extern char *cuserid (char *__s); #endif /* Use X/Open, but not issue 6. */ -#if 0 /* def __USE_GNU uClibc note: not supported */ +#if defined __USE_GNU && defined __UCLIBC_HAS_OBSTACK__ struct obstack; /* See . */ /* Write formatted output to an obstack. */ @@ -865,7 +865,7 @@ extern int obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __format, __gnuc_va_list __args) __THROW __attribute__ ((__format__ (__printf__, 2, 0))); -#endif /* Use GNU. */ +#endif /* USE_GNU && UCLIBC_HAS_OBSTACK. */ #if defined __USE_POSIX || defined __USE_MISC -- cgit v1.2.3