1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

Add asprintf prototype.

This commit is contained in:
Werner Koch 2004-10-15 09:39:31 +00:00
parent 450f0d770b
commit 5cbeda8164
2 changed files with 17 additions and 0 deletions

View file

@ -243,6 +243,19 @@ int asprintf (char **buf, const char *fmt, ...);
#define raise(a) kill(getpid(), (a))
#endif
/*-- Replacement functions from funcname.c --*/
#if !HAVE_VASPRINTF
int asprintf (char **result, const char *format, ...)
#if defined (__riscos__) \
|| (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 ))
__attribute__ ((format (printf,2,3)))
#endif
;
#endif
/******** some macros ************/
#ifndef STR
#define STR(v) #v