aboutsummaryrefslogtreecommitdiffstats
path: root/include/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-10-15 09:39:31 +0000
committerWerner Koch <[email protected]>2004-10-15 09:39:31 +0000
commit5cbeda816428f1d1071ef8bdd07d32a9bba04891 (patch)
tree4cb8bb212156aa093c6c0bf54bfc1e226693ac6d /include/util.h
parent* pkclist.c (do_edit_ownertrust): Add a note to translators. (diff)
downloadgnupg-5cbeda816428f1d1071ef8bdd07d32a9bba04891.tar.gz
gnupg-5cbeda816428f1d1071ef8bdd07d32a9bba04891.zip
Add asprintf prototype.
Diffstat (limited to '')
-rw-r--r--include/util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
index 458d13257..a2c65e497 100644
--- a/include/util.h
+++ b/include/util.h
@@ -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