diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-06-13 10:54:39 -0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-06-14 10:44:08 +0200 |
commit | 10d12e77d5cdffd064719356a87f839225916a4a (patch) | |
tree | 0e367602e34de44b29411856930fe9d2930b5c6d /include/stdio.h | |
parent | f143f920694cec922ed2ac4082aab223acc413df (diff) |
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 <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <obstack.h>. */ /* 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 |