Commit ac294bfb ac294bfbdef79bbaf188fb56fe7622ea4c21771c by Sergey Poznyakoff

Provide declarations for vasprintf,asprintf if necessary.

1 parent c5a037c0
...@@ -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 {
......