cleanup asprintf stuff
authorRich Felker <dalias@aerifal.cx>
Sun, 20 Feb 2011 22:19:37 +0000 (17:19 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 20 Feb 2011 22:19:37 +0000 (17:19 -0500)
src/stdio/asprintf.c
src/stdio/vasprintf.c

index 79e59c2..4ec8353 100644 (file)
@@ -1,8 +1,7 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdarg.h>
 
-int vasprintf(char **, const char *, va_list);
-
 int asprintf(char **s, const char *fmt, ...)
 {
        int ret;
index f2bbc7a..68b7246 100644 (file)
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>