Procházet zdrojové kódy

cleanup asprintf stuff

Rich Felker před 14 roky
rodič
revize
3075f7e847
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 2
      src/stdio/asprintf.c
  2. 1 0
      src/stdio/vasprintf.c

+ 1 - 2
src/stdio/asprintf.c

@@ -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;

+ 1 - 0
src/stdio/vasprintf.c

@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>