Add (v)asprintf compatibility functions

In case they are not available on the platform.
This commit is contained in:
Romain Vimont 2021-11-24 19:55:00 +01:00
commit d5f6697f3a
3 changed files with 46 additions and 0 deletions

View file

@ -58,4 +58,12 @@
char *strdup(const char *s);
#endif
#ifndef HAVE_ASPRINTF
int asprintf(char **strp, const char *fmt, ...);
#endif
#ifndef HAVE_VASPRINTF
int vasprintf(char **strp, const char *fmt, va_list ap);
#endif
#endif