summaryrefslogtreecommitdiff
path: root/lgl/vasnprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgl/vasnprintf.h')
-rw-r--r--lgl/vasnprintf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lgl/vasnprintf.h b/lgl/vasnprintf.h
index 3ed5714471..f2a035b61a 100644
--- a/lgl/vasnprintf.h
+++ b/lgl/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 Lesser 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)