summaryrefslogtreecommitdiff
path: root/lib/vasnprintf.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-04 23:50:44 +0000
committerBruno Haible <bruno@clisp.org>2007-03-04 23:50:44 +0000
commit69b34ed804d9560de6661a9f7d4db57f1fbe2d8e (patch)
tree6f22478707e56b671dc338df00f605f66e8d940a /lib/vasnprintf.h
parent9acd7fad1a75d4a75232fd5ae4d9e8068f1d5f38 (diff)
downloadgnulib-69b34ed804d9560de6661a9f7d4db57f1fbe2d8e.tar.gz
Use function name rpl_vasnprintf if vasnprintf already exists.
Diffstat (limited to 'lib/vasnprintf.h')
-rw-r--r--lib/vasnprintf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/vasnprintf.h b/lib/vasnprintf.h
index 894008caec..393a7c801b 100644
--- a/lib/vasnprintf.h
+++ b/lib/vasnprintf.h
@@ -1,5 +1,5 @@
/* vsprintf with automatic memory allocation.
- Copyright (C) 2002-2004 Free Software Foundation, Inc.
+ Copyright (C) 2002-2004, 2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -65,6 +65,10 @@ extern "C" {
free (output);
}
*/
+#if REPLACE_VASNPRINTF
+# define asnprintf rpl_asnprintf
+# define vasnprintf rpl_vasnprintf
+#endif
extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)