24 lines
585 B
Diff
24 lines
585 B
Diff
--- lib/snprintf.h
|
|
+++ lib/snprintf.h
|
|
@@ -45,12 +45,20 @@
|
|
extern int vsnprintf (char *str, size_t sz, const char *format, va_list args);
|
|
#endif
|
|
|
|
+#ifndef HAVE_ASPRINTF
|
|
extern int asprintf (char **ret, const char *format, ...);
|
|
+#endif
|
|
|
|
+#ifndef HAVE_ASNPRINTF
|
|
extern int asnprintf (char **ret, size_t max_sz, const char *format, ...);
|
|
+#endif
|
|
|
|
+#ifndef HAVE_VASPRINTF
|
|
extern int vasprintf (char **ret, const char *format, va_list args);
|
|
+#endif
|
|
|
|
+#ifndef HAVE_VSNPRINTF
|
|
extern int vasnprintf (char **ret, size_t max_sz, const char *format,
|
|
va_list args);
|
|
+#endif
|
|
|