Provide declarations for vasprintf,asprintf if necessary.
Showing
1 changed file
with
11 additions
and
1 deletions
... | @@ -15,7 +15,17 @@ | ... | @@ -15,7 +15,17 @@ |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "mu_asprintf.h" | 17 | #include "mu_asprintf.h" |
18 | 18 | #if !HAVE_DECL_VASPRINTF | |
19 | extern int vasprintf __P((char **result, const char *format, va_list args)); | ||
20 | #endif | ||
21 | #if !HAVE_DECL_ASPRINTF | ||
22 | #if __STDC__ | ||
23 | extern int asprintf __P((char **result, const char *format, ...)); | ||
24 | #else | ||
25 | extern int asprintf (); | ||
26 | #endif | ||
27 | #endif | ||
28 | |||
19 | int | 29 | int |
20 | mu_vasprintf (char **result, const char *format, va_list * args) | 30 | mu_vasprintf (char **result, const char *format, va_list * args) |
21 | { | 31 | { | ... | ... |
-
Please register or sign in to post a comment