summaryrefslogtreecommitdiffstats
path: root/libc/stdio/asprintf.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-26 03:57:14 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-26 03:57:14 +0000
commit9921832fa13cef31006cfa69bc5574636c36ac0f (patch)
tree4faa87a1fbc9842126d3bdc61c0d64285ebcc849 /libc/stdio/asprintf.c
parent292e2d7a707449b531422d37cec4608d304da24e (diff)
downloaduClibc-alpine-9921832fa13cef31006cfa69bc5574636c36ac0f.tar.bz2
uClibc-alpine-9921832fa13cef31006cfa69bc5574636c36ac0f.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/stdio/asprintf.c')
-rw-r--r--libc/stdio/asprintf.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/libc/stdio/asprintf.c b/libc/stdio/asprintf.c
index 207b35a3c..3f1992559 100644
--- a/libc/stdio/asprintf.c
+++ b/libc/stdio/asprintf.c
@@ -5,16 +5,21 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
-#define vasprintf __vasprintf
+#include <features.h>
+#ifdef __USE_GNU
#include "_stdio.h"
#include <stdarg.h>
+libc_hidden_proto(asprintf)
+
+libc_hidden_proto(vasprintf)
+
#ifndef __STDIO_HAS_VSNPRINTF
#warning Skipping asprintf and __asprintf since no vsnprintf!
#else
-int attribute_hidden __asprintf(char **__restrict buf, const char * __restrict format, ...)
+int asprintf(char **__restrict buf, const char * __restrict format, ...)
{
va_list arg;
int rv;
@@ -25,7 +30,7 @@ int attribute_hidden __asprintf(char **__restrict buf, const char * __restrict f
return rv;
}
+libc_hidden_def(asprintf)
-strong_alias(__asprintf,asprintf)
-
+#endif
#endif