diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-04 23:50:44 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-04 23:50:44 +0000 |
commit | 69b34ed804d9560de6661a9f7d4db57f1fbe2d8e (patch) | |
tree | 6f22478707e56b671dc338df00f605f66e8d940a /lib/vasnprintf.h | |
parent | 9acd7fad1a75d4a75232fd5ae4d9e8068f1d5f38 (diff) | |
download | gnulib-69b34ed804d9560de6661a9f7d4db57f1fbe2d8e.tar.gz |
Use function name rpl_vasnprintf if vasnprintf already exists.
Diffstat (limited to 'lib/vasnprintf.h')
-rw-r--r-- | lib/vasnprintf.h | 6 |
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) |