Browse Source

expose [v]asprintf under _BSD_SOURCE

reported/requested by Strake; simplified from the provided patch
Rich Felker 12 years ago
parent
commit
d18a410bbf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/stdio.h

+ 2 - 2
include/stdio.h

@@ -175,11 +175,11 @@ int fileno_unlocked(FILE *);
 int getw(FILE *);
 int putw(int, FILE *);
 char *fgetln(FILE *, size_t *);
+int asprintf(char **, const char *, ...);
+int vasprintf(char **, const char *, va_list);
 #endif
 
 #ifdef _GNU_SOURCE
-int asprintf(char **, const char *, ...);
-int vasprintf(char **, const char *, va_list);
 char *fgets_unlocked(char *, int, FILE *);
 int fputs_unlocked(const char *, FILE *);
 #endif