summaryrefslogtreecommitdiff
path: root/libc/stdio/asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/asprintf.c')
-rw-r--r--libc/stdio/asprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/asprintf.c b/libc/stdio/asprintf.c
index 54998fa1d..36ed807a4 100644
--- a/libc/stdio/asprintf.c
+++ b/libc/stdio/asprintf.c
@@ -12,8 +12,6 @@
#warning Skipping asprintf and __asprintf since no vsnprintf!
#else
-weak_alias(__asprintf,asprintf)
-
int __asprintf(char **__restrict buf, const char * __restrict format, ...)
{
va_list arg;
@@ -26,4 +24,6 @@ int __asprintf(char **__restrict buf, const char * __restrict format, ...)
return rv;
}
+weak_alias(__asprintf,asprintf)
+
#endif