diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-08-23 06:51:30 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-08-23 06:51:30 +0000 |
commit | f80378d119cedeb90081b9f70c1bfae4cbecac2a (patch) | |
tree | 5742fa4689ab809bb66a205d42d0d47bd9620f91 /lib | |
parent | d8b36a08ab232124bfebf74eca64a26088c05f1d (diff) | |
download | mailutils-f80378d119cedeb90081b9f70c1bfae4cbecac2a.tar.gz mailutils-f80378d119cedeb90081b9f70c1bfae4cbecac2a.tar.bz2 |
Provide declarations for (v)asprintf.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mu_asprintf.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/mu_asprintf.h b/lib/mu_asprintf.h index 706159ea0..3bca108c9 100644 --- a/lib/mu_asprintf.h +++ b/lib/mu_asprintf.h @@ -26,10 +26,18 @@ #endif /*__P */ #include <stdarg.h> +#include <stdio.h> -extern int mu_vasprintf __P ((char **result, const char *format, va_list * args)); - -extern int mu_asprintf __P ((char **result, const char *format, ...)); +#if !HAVE_DECL_VASPRINTF +extern int vasprintf __P((char **result, const char *format, va_list args)); +#endif +#if !HAVE_DECL_ASPRINTF +#if __STDC__ +extern int asprintf __P((char **result, const char *format, ...)); +#else +extern int asprintf (); +#endif +#endif #endif |