1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-24 22:09:57 +01: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

@ -1,3 +1,7 @@
2004-10-15 Werner Koch <wk@g10code.com>
* util.h [!HAVE_VASPRINTF]: Add asprintf prototype.
2004-10-13 David Shaw <dshaw@jabberwocky.com>
* keyserver.h: Add KEYSERVER_TIMEOUT.

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